void-packages/srcpkgs/zlib32/template

52 lines
1.3 KiB
Text

# Template file for 'zlib32'
pkgname=zlib32
version=1.2.7
revision=1
distfiles="
http://xbps.nopcode.org/repos/current//zlib-${version}_${revision}.i686.xbps
http://xbps.nopcode.org/repos/current//zlib-devel-${version}_${revision}.i686.xbps"
makedepends="bsdtar glibc32"
short_desc="A compression/decompression Library (32 bits)"
homepage="http://www.zlib.net"
license="zlib"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum="
cfc32d247b685a45e056b40293e2b763a412727ead41fcaba09d476926328e28
ef0fdbc463bf689f0d6ea7e9e410c8e1ab79232808034a3bb640ad4ad5210bc9"
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.
This package installs the 32 bit libraries for x86_64 systems."
noextract=yes
only_for_archs=x86_64
do_install() {
for f in ${distfiles}; do
local srcfile="${XBPS_SRCDISTDIR}/$(basename ${f})"
bsdtar xf ${srcfile} -C ${wrksrc}
done
vmkdir usr/lib32
vcopy "usr/lib/*.a" usr/lib32
vcopy "usr/lib/*.so*" usr/lib32
}
zlib32-devel_package() {
depends="glibc32-devel zlib32>=${version}"
nostrip=yes
short_desc="${short_desc} - development files"
pkg_install() {
vmove usr/lib32/libz.a
}
}
zlib32_package() {
depends="glibc32"
nostrip=yes
noverifyrdeps=yes
pkg_install() {
vmove usr
}
}