aboutsummaryrefslogtreecommitdiffstats
path: root/main/protobuf-c/APKBUILD
blob: 137a85552e696ad89fdd8277eb37d3d94f167444 (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
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=protobuf-c
pkgver=0.15
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="http://protobuf-c.googlecode.com/files/$pkgname-$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
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" -iname *.la -delete
}

md5sums="73ff0c8df50d2eee75269ad8f8c07dc8  protobuf-c-0.15.tar.gz"
sha256sums="8fcb538e13a5431c46168fc8f2e6ad2574e2db9b684c0c72b066e24f010a0036  protobuf-c-0.15.tar.gz"
sha512sums="a51b9977ca4a6a73dffe92c7f8f5526f5dd3561b5139df290bafe5093d0fd6ace701d9fa1ee92a9dc8394960efd48f739c44ac17a74a7acd8c365d63e6312e9e  protobuf-c-0.15.tar.gz"