blob: 65786c4214d1bd7132342e1f07a9df0215459f7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# 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"
|