void-packages/srcpkgs/zlib/template
Juan RP 5a2cc5b5bd xbps-src: infrastructure changes required for "nonfree" keyword in tmpls.
- The chroot target now execs masterdir/bin/xbps-shell to set up correct envvars.
- 2 pkgs are now in nonfree repo: adobe-flash-plugin and jre.
- Renamed some vars in xbps-src to be in uppercase, notably XBPS_MACHINE.
- make-repoidx target now creates the index for all "known" directories specified
  via XBPS_PACKAGESDIR: XBPS_MACHINE, noarch, and nonfree/XBPS_MACHINE.
2011-11-08 11:56:17 +01:00

31 lines
930 B
Text

# Template build file for 'zlib'
pkgname=zlib
version=1.2.5
revision=4
distfiles="http://www.zlib.net/$pkgname-$version.tar.bz2"
build_style=configure
configure_args="--prefix=/usr --shared"
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
configure_args="${configure_args} --64"
fi
make_build_args="CFLAGS=-fPIC"
make_install_args="LDCONFIG="
short_desc="A compression/decompression Library"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=239aead2f22f16bfcfa6a6a5150dcbd6d6f2e4d1eaa8727b5769ea014120b307
long_desc="
This is a general purpose data compression library. All the code
is thread safe. The data format used by the library is described
by RFCs (Request for Comments) 1950 to 1952."
bootstrap=yes
subpackages="zlib-devel"
Add_dependency run glibc
post_install()
{
chmod 755 ${DESTDIR}/usr/lib/libz.so.${version}
cd ${DESTDIR}/usr/lib && \
ln -s libz.so.${version} libz.so.1 &&
ln -s libz.so.${version} libz.so
}