2008-10-22 14:51:18 +00:00
|
|
|
# Template build file for 'zlib'
|
|
|
|
pkgname=zlib
|
2010-04-21 01:45:21 +00:00
|
|
|
version=1.2.5
|
2010-12-25 01:27:06 +00:00
|
|
|
revision=3
|
2008-10-28 22:57:52 +00:00
|
|
|
distfiles="http://www.zlib.net/$pkgname-$version.tar.bz2"
|
2008-10-22 14:51:18 +00:00
|
|
|
build_style=configure
|
2010-03-16 21:38:46 +00:00
|
|
|
configure_args="--prefix=/usr --shared"
|
2010-04-20 23:37:11 +00:00
|
|
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
|
|
|
configure_args="${configure_args} --64"
|
|
|
|
fi
|
2010-10-30 23:24:45 +00:00
|
|
|
make_build_args="CFLAGS=-fPIC"
|
2010-10-30 16:13:07 +00:00
|
|
|
make_install_args="LDCONFIG="
|
2009-03-18 09:02:43 +00:00
|
|
|
short_desc="A compression/decompression Library"
|
2008-10-22 14:51:18 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-04-21 01:45:21 +00:00
|
|
|
checksum=239aead2f22f16bfcfa6a6a5150dcbd6d6f2e4d1eaa8727b5769ea014120b307
|
2008-10-22 14:51:18 +00:00
|
|
|
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."
|
2008-10-22 14:52:17 +00:00
|
|
|
|
2008-10-27 06:42:40 +00:00
|
|
|
base_chroot=yes
|
2009-11-22 07:31:44 +00:00
|
|
|
subpackages="zlib-devel"
|
2009-02-24 06:13:11 +00:00
|
|
|
Add_dependency run glibc
|
2010-11-05 10:55:31 +00:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2010-12-25 01:27:06 +00:00
|
|
|
chmod 755 ${DESTDIR}/usr/lib/libz.so.${version}
|
2010-11-05 10:55:31 +00:00
|
|
|
cd ${DESTDIR}/usr/lib && \
|
|
|
|
ln -s libz.so.${version} libz.so.1 &&
|
|
|
|
ln -s libz.so.${version} libz.so
|
|
|
|
}
|