aboutsummaryrefslogtreecommitdiffstats
path: root/testing/protobuf
diff options
context:
space:
mode:
authorKiyoshi Aman <aphrael@alpinelinux.org>2011-04-01 04:08:42 -0400
committerKiyoshi Aman <aphrael@alpinelinux.org>2011-04-01 04:08:42 -0400
commit9313b4123f4043b73ad2aa670cff34cc2d231615 (patch)
tree1b589b2cca3ceae22fbd2612c5ad6262d7a7d8dc /testing/protobuf
parent6d1570c86eb2e1509f2d1d86132de8fff79be8d3 (diff)
downloadaports-9313b4123f4043b73ad2aa670cff34cc2d231615.tar.bz2
aports-9313b4123f4043b73ad2aa670cff34cc2d231615.tar.xz
testing/protobuf: new aport
Diffstat (limited to 'testing/protobuf')
-rw-r--r--testing/protobuf/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/protobuf/APKBUILD b/testing/protobuf/APKBUILD
new file mode 100644
index 0000000000..db04826d5a
--- /dev/null
+++ b/testing/protobuf/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer:
+pkgname=protobuf
+pkgver=2.4.0a
+pkgrel=0
+pkgdesc="Library for extensible, efficient structure packing"
+url="http://code.google.com/p/protobuf/"
+arch="all"
+license="BSD"
+depends=
+depends_dev=
+makedepends="zlib-dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://protobuf.googlecode.com/files/protobuf-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/protobuf-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+ make check || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+py() {
+ depends="python"
+ cd "$_builddir"/python
+ mkdir -p "$subpkgdir"/usr/lib/python2.6/site-packages/
+ install -m644 google "$subpkgdir"/usr/lib/python2.6/site-packages
+}
+
+md5sums="61df3f63ec284fc6f57a68c67e4918c6 protobuf-2.4.0a.tar.bz2"