iglunix/pkgs/zlib/build.sh

40 lines
645 B
Bash
Raw Normal View History

2021-01-17 19:15:45 +00:00
pkgver=1.2.11
pkgname=zlib
bad=""
ext="dev"
fetch() {
curl https://zlib.net/zlib-1.2.11.tar.xz -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm $pkgdir/usr/lib/*.a
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/lib/pkgconfig
rm -r $pkgdir/usr/share
}
2021-01-31 11:09:14 +00:00
package_dev() {
2021-01-17 19:15:45 +00:00
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
2021-01-31 11:09:14 +00:00
rm $pkgdir/usr/lib/*.so
rm $pkgdir/usr/lib/*.so.*
rm -r $pkgdir/usr/share
2021-01-17 19:15:45 +00:00
}
license() {
cd $pkgname-$pkgver
2021-02-21 22:47:48 +00:00
grep -A 24 '^ Copyright' zlib.h
2021-01-17 19:15:45 +00:00
}