mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 02:27:13 +08:00
59 lines
1.4 KiB
Bash
59 lines
1.4 KiB
Bash
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/zlib
|
|
|
|
pkgbase=zlib
|
|
pkgname=(zlib minizip)
|
|
pkgver=1.2.11
|
|
pkgrel=1
|
|
arch=('x86_64')
|
|
license=('custom')
|
|
url="http://www.zlib.net/"
|
|
depends=('glibc')
|
|
options=('staticlibs') # needed by binutils testsuite
|
|
source=("http://zlib.net/zlib-${pkgver}.tar.gz"{,.asc})
|
|
md5sums=('1c9f62f0778697a09d36121ead88e08e'
|
|
'SKIP')
|
|
validpgpkeys=('5ED46A6721D365587791E2AA783FCD8E58BCAFBA')
|
|
|
|
prepare() {
|
|
cd ${srcdir}/zlib-$pkgver
|
|
grep -A 24 '^ Copyright' zlib.h > LICENSE
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/zlib-$pkgver
|
|
./configure --prefix=/usr
|
|
make
|
|
|
|
cd contrib/minizip
|
|
cp Makefile Makefile.orig
|
|
cp ../README.contrib readme.txt
|
|
autoreconf --install
|
|
./configure --prefix=/usr --enable-static=no
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/zlib-$pkgver
|
|
make test
|
|
|
|
cd contrib/minizip
|
|
make -f Makefile.orig test
|
|
}
|
|
|
|
package_zlib() {
|
|
pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP'
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
|
make install DESTDIR=${pkgdir}
|
|
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/zlib/LICENSE
|
|
}
|
|
|
|
package_minizip() {
|
|
pkgdesc='Mini zip and unzip based on zlib'
|
|
depends=('zlib')
|
|
|
|
cd ${srcdir}/zlib-$pkgver/contrib/minizip
|
|
make install DESTDIR=${pkgdir}
|
|
install -D -m644 ${srcdir}/zlib-$pkgver/LICENSE ${pkgdir}/usr/share/licenses/minizip/LICENSE
|
|
}
|