void-packages/srcpkgs/zlib/template

45 lines
956 B
Text
Raw Normal View History

# Template build file for 'zlib'
pkgname=zlib
2012-05-03 08:47:56 +00:00
version=1.2.7
revision=1
2013-02-05 01:48:48 +00:00
bootstrap=yes
short_desc="A compression/decompression Library"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-01-31 23:32:02 +00:00
license="zlib"
2013-02-05 01:48:48 +00:00
homepage="http://www.zlib.net"
distfiles="$homepage/$pkgname-$version.tar.bz2"
2012-05-03 08:47:56 +00:00
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."
2013-02-05 01:48:48 +00:00
do_configure() {
CFLAGS="$CFLAGS -fPIC" ./configure --prefix=/usr --shared
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} LDCONFIG= install
}
zlib-devel_package() {
depends="zlib>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove usr/share
}
}
zlib_package() {
pkg_install() {
vmove usr
}
}