mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-21 07:42:21 +01:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
# Contributor: k0r10n <k0r10n.dev@gmail.com>
|
|
# Contributor: Jose-Luis Rivas <ghostbar@riseup.net>
|
|
# Maintainer:
|
|
pkgname=libzip
|
|
pkgver=1.1.2
|
|
pkgrel=0
|
|
pkgdesc="A C library for reading, creating, and modifying zip archives"
|
|
url="http://www.nih.at/libzip/index.html"
|
|
arch="all"
|
|
license="BSD"
|
|
depends=
|
|
depends_dev="zlib-dev"
|
|
makedepends="$depends_dev perl"
|
|
install=""
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
|
|
source="http://www.nih.at/libzip/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
_builddir="$srcdir/${pkgname}-${pkgver}"
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure -prefix=/usr || return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make DESTDIR="$pkgdir" -j1 install install-man || return 1
|
|
mv "$pkgdir"/usr/lib/libzip/include/* "$pkgdir"/usr/include || return 1
|
|
rm -fr "$pkgdir"/usr/lib/libzip
|
|
}
|
|
|
|
tools() {
|
|
pkgdesc="$pkgname cmp and merge tools"
|
|
install -d "$subpkgdir"/usr
|
|
mv "$pkgdir"/usr/bin "$subpkgdir"/usr
|
|
}
|
|
md5sums="0820a1ae5733518f5d6e289cb642c08e libzip-1.1.2.tar.gz"
|
|
sha256sums="59ac7c09b0aa9aa7e21849c236d0a66a97aa6d442d78335c2fdfe0ee16366221 libzip-1.1.2.tar.gz"
|
|
sha512sums="fcc5dd064e76d66d75932d053b538e7b9e8f1223469f4c36458d66dcd579a68ba0ca75c7b95ad69c64072c431430c63b9e822c23a1eca84f1efc262ff8776927 libzip-1.1.2.tar.gz"
|