updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / protobuf-java / PKGBUILD
blob473bf3f2f16c82a38b5cd5ef0870dc601c9e77b9
1 # Maintainer: Igor R. Dejanovic igor.dejanovic@gmail.com
2 # Contributor: Igor R. Dejanovic igor.dejanovic@gmail.com
4 pkgname=protobuf-java
5 _xpkgname=protobuf
6 pkgver=2.4.1
7 pkgrel=1
8 pkgdesc="Google's data interchange format utility (java API)."
9 url="http://code.google.com/p/protobuf/"
10 license=('custom:BSD')
11 arch=('any')
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')
18 build() {
20   cd $srcdir/$_xpkgname-$pkgver
21   patch -p1 < ../protobuf-java.patch
23   cd $srcdir/$_xpkgname-$pkgver/java
24   mvn package
28 package() {
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"