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