aboutsummaryrefslogtreecommitdiffstats
path: root/main/protobuf
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-19 14:41:27 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-08-16 02:06:54 +0200
commit211b3d989a1f868f320658aea4853205ad1fc052 (patch)
treedf8ec3a03ca861d0d506a92611b26c0e9340f7f9 /main/protobuf
parent84541b779a5b03c8d87f79bdc097e75c95657812 (diff)
downloadaports-211b3d989a1f868f320658aea4853205ad1fc052.tar.bz2
aports-211b3d989a1f868f320658aea4853205ad1fc052.tar.xz
main/protobuf: modernize abuild, move "make check" to check phase
Diffstat (limited to 'main/protobuf')
-rw-r--r--main/protobuf/APKBUILD16
1 files changed, 9 insertions, 7 deletions
diff --git a/main/protobuf/APKBUILD b/main/protobuf/APKBUILD
index 8297e09f81..089f339c22 100644
--- a/main/protobuf/APKBUILD
+++ b/main/protobuf/APKBUILD
@@ -7,7 +7,6 @@ pkgdesc="Library for extensible, efficient structure packing"
url="https://github.com/google/protobuf"
arch="all"
license="BSD"
-depends=""
depends_dev="zlib-dev"
makedepends="$depends_dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-vim::noarch"
@@ -17,7 +16,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/google/$pkgname/archive/v$pk
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
./autogen.sh
@@ -31,15 +30,18 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
- make check || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
vim() {