summaryrefslogtreecommitdiffstats
path: root/main/protobuf-c/APKBUILD
blob: 2f812b0a0f55556b42f98f710936537d643e6419 (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@gmail.com>
pkgname=protobuf-c
pkgver=1.0.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="e8485b35bb8c9ff0a89a3df957976fc8  protobuf-c-1.0.0.tar.gz"
sha256sums="de453698d693bd1a3842759964d436e66a7afee18f3be1e324b7b74e8c0eaaea  protobuf-c-1.0.0.tar.gz"
sha512sums="437805ea6416f9dddc207063c7ddc997df351de87ee094cfd30bb605002f2b0ee9def2fbd088e96876ca7c460eb334f8942ed5a8e6cac32c6ef9974f225bc1d4  protobuf-c-1.0.0.tar.gz"