summaryrefslogtreecommitdiff
path: root/~lukeshu-closure-compiler
diff options
context:
space:
mode:
Diffstat (limited to '~lukeshu-closure-compiler')
-rw-r--r--~lukeshu-closure-compiler/protobuf-java/PKGBUILD34
-rw-r--r--~lukeshu-closure-compiler/protobuf-java/protobuf-java.patch21
2 files changed, 55 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"
+}
+
diff --git a/~lukeshu-closure-compiler/protobuf-java/protobuf-java.patch b/~lukeshu-closure-compiler/protobuf-java/protobuf-java.patch
new file mode 100644
index 000000000..1286223ed
--- /dev/null
+++ b/~lukeshu-closure-compiler/protobuf-java/protobuf-java.patch
@@ -0,0 +1,21 @@
+diff -aur protobuf-2.4.1/java/pom.xml protobuf-2.4.1-patched/java/pom.xml
+--- protobuf-2.4.1/java/pom.xml 2011-04-30 19:23:04.000000000 +0200
++++ protobuf-2.4.1-patched/java/pom.xml 2011-05-09 17:58:09.000000000 +0200
+@@ -78,7 +78,7 @@
+ <configuration>
+ <tasks>
+ <mkdir dir="target/generated-sources" />
+- <exec executable="../src/protoc">
++ <exec executable="protoc">
+ <arg value="--java_out=target/generated-sources" />
+ <arg value="--proto_path=../src" />
+ <arg value="../src/google/protobuf/descriptor.proto" />
+@@ -96,7 +96,7 @@
+ <configuration>
+ <tasks>
+ <mkdir dir="target/generated-test-sources" />
+- <exec executable="../src/protoc">
++ <exec executable="protoc">
+ <arg value="--java_out=target/generated-test-sources" />
+ <arg value="--proto_path=../src" />
+ <arg value="--proto_path=src/test/java" />