aboutsummaryrefslogtreecommitdiffstats
path: root/main/protobuf-c/APKBUILD
blob: bd2f8371cd9798593bfc26109a79e6dfc1570167 (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.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="41d437677ea16f9d3611d98841c4af3b  protobuf-c-1.1.1.tar.gz"
sha256sums="09c5bb187b7a8e86bc0ff860f7df86370be9e8661cdb99c1072dcdab0763562c  protobuf-c-1.1.1.tar.gz"
sha512sums="9eeb3165ca53c57091503866e2600d675e03d79c22dbd41bd3c4ebf8e569ed147f0b832e8b68dcdaece2f151798e7e0589fdf975e9a04fae9904991e89ea0465  protobuf-c-1.1.1.tar.gz"