1 # Maintainer: Igor R. Dejanovic igor.dejanovic@gmail.com
2 # Contributor: Igor R. Dejanovic igor.dejanovic@gmail.com
8 pkgdesc="Google's data interchange format utility (java API)."
9 url="http://code.google.com/p/protobuf/"
10 license=('custom:BSD')
12 depends=("java-environment")
13 makedepends=('java-environment' 'maven' "${_xpkgname}>=${pkgver}")
14 source=(http://protobuf.googlecode.com/files/$_xpkgname-$pkgver.tar.bz2 protobuf-java.patch)
15 md5sums=('ed436802019c9e1f40cc750eaf78f318'
16 '01a3244c88fc5ddfee07c658c0bc7df4')
20 cd $srcdir/$_xpkgname-$pkgver
21 patch -p1 < ../protobuf-java.patch
23 cd $srcdir/$_xpkgname-$pkgver/java
29 install -Dm644 "$srcdir/$_xpkgname-$pkgver/java/target/$pkgname-$pkgver.jar" \
30 "$pkgdir/usr/share/java/$pkgname/$pkgname-$pkgver.jar"
31 install -Dm644 "$srcdir/$_xpkgname-$pkgver/COPYING.txt" \
32 "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"