aboutsummaryrefslogtreecommitdiffstats
path: root/community/libzip/APKBUILD
blob: a990427545ac3fe8119255323c94b6571b4ae816 (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
41
42
43
44
45
46
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Contributor: Jose-Luis Rivas <ghostbar@riseup.net>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=libzip
pkgver=1.1.3
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"
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| 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 || return 1
}

md5sums="898f02db185068c8ae45bafe4c5cc81c  libzip-1.1.3.tar.gz"
sha256sums="1faa5a524dd4a12c43b6344e618edce1bf8050dfdb9d0f73f3cc826929a002b0  libzip-1.1.3.tar.gz"
sha512sums="8534b48d2f1498b741925dbdf7510ebbdfb9773b5266ec28b1eb22b8f1a39e7ba44d225dae7d5dc265415a30e5b5295e7061e5c97698834405ce97ef08b97326  libzip-1.1.3.tar.gz"