blob: 26f1690bcd4d1d12d6c8bf31e4c3d88667b30da1 (
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
|
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Maintainer:
pkgname=libzip
pkgver=1.0.1
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="a8c3d356221b9e69ff54c1d53cc39e92 libzip-1.0.1.tar.gz"
sha256sums="0cef914d8f5105ccac44484f61413daa08d7204758e77240a4d20ebf967f3d49 libzip-1.0.1.tar.gz"
sha512sums="9fadccd383935e14130092f0f4c4839fb3ba189ba85fb2696458f15a29716d476569f9fb937c7c8e26ce28d313c42d41ce8050fbff0c09d6d6367d25e0b63330 libzip-1.0.1.tar.gz"
|