12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- set -e
- program=libarchive
- version=3.5.2
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://libarchive.org/downloads/$tarname
- description="
- Multi-format archive and compression library.
- The libarchive project develops a portable, efficient C library that
- can read and write streaming archives in a variety of formats.
- It also includes implementations of the common tar, cpio, and zcat
- command-line tools that use the libarchive library.
- "
- homepage=http:/libarchive.org
- license=BSD
- docs="COPYING NEWS README.md"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
-
- ./configure \
- CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --enable-static=no \
- --enable-shared=yes \
- --without-xml2 \
- --without-openssl \
- --with-nettle \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
- rmdir "${destdir}/usr/bin" 2> /dev/null || true;
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|