From cddbccc06a6b2d856fc57d2d5af71d28443bcab4 Mon Sep 17 00:00:00 2001 From: TBK Date: Thu, 26 Oct 2017 13:21:08 +0200 Subject: main/protobuf-c: modernize --- main/protobuf-c/APKBUILD | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/main/protobuf-c/APKBUILD b/main/protobuf-c/APKBUILD index 491b45ae57..0ffa5af075 100644 --- a/main/protobuf-c/APKBUILD +++ b/main/protobuf-c/APKBUILD @@ -1,7 +1,8 @@ +# Contributor: TBK # Maintainer: Leonardo Arena pkgname=protobuf-c pkgver=1.3.0 -pkgrel=1 +pkgrel=2 pkgdesc="C bindings for Google's Protocol Buffers" url="https://github.com/protobuf-c/protobuf-c/wiki" arch="all" @@ -12,29 +13,30 @@ makedepends="$depends_dev protobuf-dev" install= subpackages="$pkgname-dev" source="https://github.com/protobuf-c/protobuf-c/releases/download/v$pkgver/protobuf-c-$pkgver.tar.gz" - -_builddir="$srcdir"/$pkgname-$pkgver - -prepare() { - cd "$_builddir" - return 0 -} +builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" + cd "$builddir" + ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - || return 1 + --infodir=/usr/share/info # parallel build issue: # https://github.com/protobuf-c/protobuf-c/issues/156 - make t/test-full.pb.h && make || return 1 + make t/test-full.pb.h && make +} + +check() { + cd "$builddir" + + make check } package() { - cd "$_builddir" + cd "$builddir" + make DESTDIR="$pkgdir" install } -- cgit v1.2.3