diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 17:50:34 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 17:54:18 +0000 |
commit | 0e83abc9a09e573eca48ee2397e971bd7738c53c (patch) | |
tree | cd16af58756742b9e633fc99d4792207ca44e391 | |
parent | 62750af0fedc04e43d6393aecd7d3d440a2ea2c5 (diff) | |
download | alpine_aports-0e83abc9a09e573eca48ee2397e971bd7738c53c.tar.bz2 alpine_aports-0e83abc9a09e573eca48ee2397e971bd7738c53c.tar.xz alpine_aports-0e83abc9a09e573eca48ee2397e971bd7738c53c.zip |
community/libzip: modernize and add check
-rw-r--r-- | community/libzip/APKBUILD | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/community/libzip/APKBUILD b/community/libzip/APKBUILD index 85addab28e..b17b7db2e2 100644 --- a/community/libzip/APKBUILD +++ b/community/libzip/APKBUILD | |||
@@ -3,12 +3,11 @@ | |||
3 | # Maintainer: Carlo Landmeter <clandmeter@gmail.com> | 3 | # Maintainer: Carlo Landmeter <clandmeter@gmail.com> |
4 | pkgname=libzip | 4 | pkgname=libzip |
5 | pkgver=1.3.0 | 5 | pkgver=1.3.0 |
6 | pkgrel=0 | 6 | pkgrel=1 |
7 | pkgdesc="A C library for reading, creating, and modifying zip archives" | 7 | pkgdesc="A C library for reading, creating, and modifying zip archives" |
8 | url="http://www.nih.at/libzip/index.html" | 8 | url="http://www.nih.at/libzip/index.html" |
9 | arch="all" | 9 | arch="all" |
10 | license="BSD" | 10 | license="BSD" |
11 | depends= | ||
12 | depends_dev="zlib-dev" | 11 | depends_dev="zlib-dev" |
13 | makedepends="$depends_dev perl" | 12 | makedepends="$depends_dev perl" |
14 | subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" | 13 | subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" |
@@ -28,22 +27,26 @@ build() { | |||
28 | --prefix=/usr \ | 27 | --prefix=/usr \ |
29 | --sysconfdir=/etc \ | 28 | --sysconfdir=/etc \ |
30 | --mandir=/usr/share/man \ | 29 | --mandir=/usr/share/man \ |
31 | --localstatedir=/var \ | 30 | --localstatedir=/var |
32 | || return 1 | 31 | make |
33 | make || return 1 | 32 | } |
33 | |||
34 | check() { | ||
35 | cd "$builddir" | ||
36 | make check | ||
34 | } | 37 | } |
35 | 38 | ||
36 | package() { | 39 | package() { |
37 | cd "$builddir" | 40 | cd "$builddir" |
38 | make DESTDIR="$pkgdir" -j1 install install-man || return 1 | 41 | make DESTDIR="$pkgdir" -j1 install install-man |
39 | mv "$pkgdir"/usr/lib/libzip/include/* "$pkgdir"/usr/include || return 1 | 42 | mv "$pkgdir"/usr/lib/libzip/include/* "$pkgdir"/usr/include |
40 | rm -fr "$pkgdir"/usr/lib/libzip | 43 | rm -fr "$pkgdir"/usr/lib/libzip |
41 | } | 44 | } |
42 | 45 | ||
43 | tools() { | 46 | tools() { |
44 | pkgdesc="$pkgname cmp and merge tools" | 47 | pkgdesc="$pkgname cmp and merge tools" |
45 | install -d "$subpkgdir"/usr | 48 | install -d "$subpkgdir"/usr |
46 | mv "$pkgdir"/usr/bin "$subpkgdir"/usr || return 1 | 49 | mv "$pkgdir"/usr/bin "$subpkgdir"/usr |
47 | } | 50 | } |
48 | 51 | ||
49 | sha512sums="8cffbcd27b9e6c9676c5224c5784190bff881ac690ce0f58702b17c99ee6d1c14eda266298841f896a02233d2eb5f4147d5c8b4ad55d36c384eaa560fd96ff89 libzip-1.3.0.tar.gz" | 52 | sha512sums="8cffbcd27b9e6c9676c5224c5784190bff881ac690ce0f58702b17c99ee6d1c14eda266298841f896a02233d2eb5f4147d5c8b4ad55d36c384eaa560fd96ff89 libzip-1.3.0.tar.gz" |