updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / jets3t-hg / PKGBUILD
blobb6f9bcf39199249ff06e4922ed329f4431da6166
1 # Contributor: Max Garmash <max.garmash@gmail.com>
3 pkgname=jets3t-hg
4 pkgver=0.8.1
5 pkgrel=1
6 pkgdesc="Java library and front-end (cockpit) for accessing Amazon Simple Storage Service (Amazon S3)"
7 arch=('i686' 'x86_64')
8 url="http://bitbucket.org/jmurty/jets3t/wiki/Home"
9 license=('Apache 2')
10 depends=('java-runtime' 'mercurial' 'apache-ant')
11 conflicts=('jets3t')
12 optdepends=('java-jce_policy: enables stronger encryption')
13 source=(jets3t.sh)
14 md5sums=('030cdcfb38ea5fb68262fba543aae75b')
16 build() {
17   cd $srcdir
18   hg clone https://bitbucket.org/jmurty/jets3t
19   cd jets3t
20   ant
21   mkdir -p $pkgdir/usr/share/java/$pkgname
22   rm $srcdir/jets3t/dist/jets3t-$pkgver-dev/bin/*.bat
23   chmod 755 $srcdir/jets3t/dist/jets3t-$pkgver-dev/bin/*.sh
24   cp -a $srcdir/jets3t/dist/jets3t-$pkgver-dev/* $pkgdir/usr/share/java/$pkgname/
26   install -D -m 755 $srcdir/jets3t/dist/jets3t-$pkgver-dev/bin/cockpit.sh $pkgdir/usr/bin/cockpit
27   install -D -m 755 $srcdir/jets3t/dist/jets3t-$pkgver-dev/bin/cockpitlite.sh $pkgdir/usr/bin/cockpitlite
28   install -D -m 755 $srcdir/jets3t.sh $pkgdir/etc/profile.d/jets3t.sh