summaryrefslogtreecommitdiff
path: root/~lukeshu-closure-compiler/protobuf-java/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to '~lukeshu-closure-compiler/protobuf-java/PKGBUILD')
-rw-r--r--~lukeshu-closure-compiler/protobuf-java/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/~lukeshu-closure-compiler/protobuf-java/PKGBUILD b/~lukeshu-closure-compiler/protobuf-java/PKGBUILD
new file mode 100644
index 000000000..473bf3f2f
--- /dev/null
+++ b/~lukeshu-closure-compiler/protobuf-java/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Igor R. Dejanovic igor.dejanovic@gmail.com
+# Contributor: Igor R. Dejanovic igor.dejanovic@gmail.com
+
+pkgname=protobuf-java
+_xpkgname=protobuf
+pkgver=2.4.1
+pkgrel=1
+pkgdesc="Google's data interchange format utility (java API)."
+url="http://code.google.com/p/protobuf/"
+license=('custom:BSD')
+arch=('any')
+depends=("java-environment")
+makedepends=('java-environment' 'maven' "${_xpkgname}>=${pkgver}")
+source=(http://protobuf.googlecode.com/files/$_xpkgname-$pkgver.tar.bz2 protobuf-java.patch)
+md5sums=('ed436802019c9e1f40cc750eaf78f318'
+ '01a3244c88fc5ddfee07c658c0bc7df4')
+
+build() {
+
+ cd $srcdir/$_xpkgname-$pkgver
+ patch -p1 < ../protobuf-java.patch
+
+ cd $srcdir/$_xpkgname-$pkgver/java
+ mvn package
+
+}
+
+package() {
+ install -Dm644 "$srcdir/$_xpkgname-$pkgver/java/target/$pkgname-$pkgver.jar" \
+ "$pkgdir/usr/share/java/$pkgname/$pkgname-$pkgver.jar"
+ install -Dm644 "$srcdir/$_xpkgname-$pkgver/COPYING.txt" \
+ "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"
+}
+