summaryrefslogtreecommitdiff
path: root/java/java-ow-util-ant-tasks/PKGBUILD
blob: 1f94c87284aee70aa36d5050879b787ecea7cd1f (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
35
36
37
38
39
40
41
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

pkgname=java-ow-util-ant-tasks
pkgver=1.3.2
pkgdesc="ObjectWeb utility Ant tasks library"
url="http://forge.ow2.org/projects/monolog"
license=('LGPL')

pkgrel=2
arch=('any')
depends=('java-environment')
makedepends=('apache-ant' 'xalan-java' 'java-asm2')

source=("libre://$pkgname-$pkgver.tar.gz")
mksource=("http://download.forge.objectweb.org/monolog/ow_util_ant_tasks_$pkgver.zip")
noextract=("ow_util_ant_tasks_$pkgver.zip")

mksource() {
  cd "$srcdir"
  mkdir $pkgname-$pkgver
  cd $pkgname-$pkgver
  bsdtar xf "$srcdir"/ow_util_ant_tasks_$pkgver.zip
  rm -rf output
  rm externals/*
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ln -s /usr/share/java/asm-2.jar externals/
  ln -s /usr/share/java/xalan.jar externals/
  ant jar
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -d "$pkgdir"/usr/share/java
  install -m644 "output/lib/ow_util_ant_tasks.jar" "$pkgdir"/usr/share/java
}

mkmd5sums=('cd602bf75a0feab480fa97739955b84e')
md5sums=('5622ed33b43a4ba5bdc5e63a8e2b913b')