blob: 053801abdf7bcb908b6a078327f417f3977d225b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=protobuf-c
pkgver=1.0.1
pkgrel=0
pkgdesc="C bindings for Google's Protocol Buffers"
url="https://github.com/protobuf-c/protobuf-c/wiki"
arch="all"
license="GPL"
depends=
depends_dev=
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
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
|| return 1
# parallel build issue:
# https://github.com/protobuf-c/protobuf-c/issues/156
make t/test-full.pb.h && make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" -iname *.la -delete
}
md5sums="3a87e11a18e4b823c82643636674e9e7 protobuf-c-1.0.1.tar.gz"
sha256sums="e1b2989684ac51e62f8b7de8739c381717b27c7cf4410c7a7e39b958afd3cd74 protobuf-c-1.0.1.tar.gz"
sha512sums="2974e098f8c2f49e6338fcb179cedefdb9651ef1ec53fbd1ce39d4a2778246a65f60fbfc30263d775cf830453e168ff0617a78f042a02660e21315cb57f2231c protobuf-c-1.0.1.tar.gz"
|