From eb4d0c0ccf1f4aa2c12e36700c150147f5d10de9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 22 Jan 2012 22:42:26 -0500 Subject: import ~lukeshu-closure-compiler/protobuf-java from aur (dep of closure-compiler) --- ~lukeshu-closure-compiler/protobuf-java/PKGBUILD | 34 ++++++++++++++++++++++ .../protobuf-java/protobuf-java.patch | 21 +++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 ~lukeshu-closure-compiler/protobuf-java/PKGBUILD create mode 100644 ~lukeshu-closure-compiler/protobuf-java/protobuf-java.patch (limited to '~lukeshu-closure-compiler') 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 @@ + + + +- ++ + + + +@@ -96,7 +96,7 @@ + + + +- ++ + + + -- cgit v1.2.3-54-g00ecf