aboutsummaryrefslogtreecommitdiffstats
path: root/main/protobuf-c/APKBUILD
blob: 007711e87b3d62a2b60660617da0d1ffe760eba0 (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.1.0
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="884a6e7deb4a2f7b3cc81a4dcabe514a  protobuf-c-1.1.0.tar.gz"
sha256sums="9a973fc04aac003f9cf2b5a90ac4b8fa294cacb4e3f0796d3b5a789a5ad46c07  protobuf-c-1.1.0.tar.gz"
sha512sums="50e0a9df1152e468c1bda88f67836fbe88e1ad711b3e6517265cdf715d89c2e15e7fb48c46ad4e163c978e54c899712e7a6e5e9b8bf7145cfdbc04947e0dcb34  protobuf-c-1.1.0.tar.gz"