diff --git a/srcpkgs/zlib/template b/srcpkgs/zlib/template index a82562cca88..9744dcf710f 100644 --- a/srcpkgs/zlib/template +++ b/srcpkgs/zlib/template @@ -1,24 +1,28 @@ # Template build file for 'zlib' pkgname=zlib version=1.2.7 -homepage="http://www.zlib.net" -distfiles="$homepage/$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=" revision=1 +bootstrap=yes +subpackages="zlib-devel" short_desc="A compression/decompression Library" maintainer="Juan RP " license="zlib" +homepage="http://www.zlib.net" +distfiles="$homepage/$pkgname-$version.tar.bz2" checksum=49e2e9658dfb036900da6ea0267a737fa3c4eee6666776d378c79d52e9334934 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" +do_configure() { + CFLAGS="$CFLAGS -fPIC" ./configure --prefix=/usr --shared +} + +do_build() { + make ${makejobs} +} + +do_install() { + make DESTDIR=${DESTDIR} LDCONFIG= install +}