mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
35 lines
773 B
Bash
35 lines
773 B
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=zlib
|
|
pkgver=1.2.7
|
|
pkgrel=1
|
|
pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP'
|
|
arch=('i686' 'x86_64')
|
|
license=('custom')
|
|
url="http://www.zlib.net/"
|
|
depends=('glibc')
|
|
source=("http://zlib.net/current/zlib-${pkgver}.tar.gz")
|
|
md5sums=('60df6a37c56e7c1366cca812414f7b85')
|
|
|
|
build() {
|
|
cd ${srcdir}/zlib-$pkgver
|
|
./configure --prefix=/usr
|
|
make
|
|
|
|
grep -A 24 '^ Copyright' zlib.h > LICENSE
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/zlib-$pkgver
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/zlib-$pkgver
|
|
make install DESTDIR=${pkgdir}
|
|
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/zlib/LICENSE
|
|
}
|