Commit d4e515b0 authored by Natanael Copa's avatar Natanael Copa

main/zlib: hack to fix the symlinks to lib

parent 363df59b
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zlib
pkgver=1.2.3.4
pkgrel=0
pkgrel=1
pkgdesc="A compression/decompression Library"
license=custom:zlib
url="http://www.gzip.org/zlib"
......@@ -17,11 +17,16 @@ build() {
package() {
cd "$srcdir/$pkgname-$pkgver"
make install DESTDIR="$pkgdir" || return 1
make install \
pkgconfigdir="/usr/lib/pkgconfig" \
LIBS="libz.so.1.2.3.4 libz.a" \
DESTDIR="$pkgdir" || return 1
}
# we want the zlib.pc be a part of -dev package
mkdir -p "$pkgdir"/usr/lib
mv "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/lib/
dev() {
default_dev
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/libz.a "$subpkgdir"/lib/libz.a
}
md5sums="70cad33163abe3c234939a5c63bf95ea zlib-1.2.3.4.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment