aboutsummaryrefslogtreecommitdiffstats
path: root/community/libzip/APKBUILD
blob: 1a444172c02d682227818cf15cbee7a42e8a5c30 (plain) (blame)
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
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Contributor: Jose-Luis Rivas <ghostbar@riseup.net>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=libzip
pkgver=1.7.0
pkgrel=0
pkgdesc="C library for manipulating zip archives"
url="http://www.nih.at/libzip/index.html"
arch="all"
license="BSD-3-Clause"
depends_dev="zlib-dev xz-dev"
makedepends="$depends_dev cmake openssl-dev perl"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://www.nih.at/libzip/libzip-$pkgver.tar.xz"

# secfixes:
#   1.3.0-r0:
#     - CVE-2017-14107

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_C_FLAGS="$CFLAGS"
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" -j1 install
}

tools() {
	pkgdesc="$pkgname cmp and merge tools"
	install -d "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

sha512sums="9c1632b4e0b4cfe22c5670d815bc8893d540226e3e64cf8cce7039a90bdc7048dedadb4804b151291e312c97bb384bd671e43021401c4c3e33a4e597972bc681  libzip-1.7.0.tar.xz"