diff options
-rw-r--r-- | main/protobuf-c/APKBUILD | 28 |
1 files 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 <alpin@jjtc.eu> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> 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 } |