blob: 473bf3f2f16c82a38b5cd5ef0870dc601c9e77b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"
}
|