aboutsummaryrefslogtreecommitdiffstats
path: root/main/protobuf-c/APKBUILD
blob: f39dc6bb279e98cb2ceb331ed13c43d2b761d318 (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.2
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="42f03767ddbd1dbe26cce10bc6e08c84  protobuf-c-1.0.2.tar.gz"
sha256sums="db771f7b0e76d5bb14140a50df4a32553288fd3e701b60e90e034e22f411ef76  protobuf-c-1.0.2.tar.gz"
sha512sums="d748712f4216015802ffeff1072266da98ba9d9a4dfdaecd1c1b9d76f15403112b5cc2563a54390653c5eb82d7b51caf4c1f595cf1287bcbb123efb646e12f33  protobuf-c-1.0.2.tar.gz"