From 211b3d989a1f868f320658aea4853205ad1fc052 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 19 May 2017 14:41:27 +0200 Subject: main/protobuf: modernize abuild, move "make check" to check phase --- main/protobuf/APKBUILD | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'main/protobuf') 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() { -- cgit v1.2.3