12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- program=libz
- version=1.2.8.2015.12.26
- release=1
- outdir="${outdir}/${arch}/libs"
- pkgversion=1.2.8
- tarname=${program}-${version}.tar.gz
- fetch=http://sortix.org/libz/release/libz-1.2.8.2015.12.26.tar.gz
- description="
- A general purpose data compression library.
- libz is a general purpose data compression library. The data format
- used by libz is described by RFC 1950 (zlib format), RFC 1951 (deflate
- format), and RFC 1952 (gzip format).
- Sortix libz is developed as part of the Sortix operating system by
- Jonas 'Sortie' Termansen (sortie@maxsi.org) and contributors.
- "
- homepage=http://sortix.org/libz
- license="Custom, zlib"
- docs="CHANGES FAQ README TODO"
- docsdir="${docdir}/${program}-${pkgversion}"
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --enable-shared \
- --enable-static
- make -j${jobs}
- make -j${jobs} DESTDIR="$destdir" install
-
- strip --strip-unneeded "${destdir}/usr/lib${libSuffix}"/libz.so*
- strip -g "${destdir}/usr/lib${libSuffix}/libz.a"
-
- chmod 755 "${destdir}/usr/lib${libSuffix}/libz.so.${pkgversion}"
-
- lzip -9 "${destdir}/${mandir}"/man?/*.?
-
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}"
- }
|