PKGBUILDs/community/java-batik/PKGBUILD
2009-10-09 21:15:33 -05:00

26 lines
837 B
Bash

# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Simon Lipp <sloonz+aur@gmail.com>
pkgname=java-batik
pkgver=1.7
pkgrel=6
pkgdesc="SVG library for Java"
arch=('i686' 'x86_64')
url="http://xmlgraphics.apache.org/batik/"
license=(APACHE)
depends=('java-commons-io' 'java-commons-logging' 'java-xmlgraphics-commons')
makedepends=('java-environment' 'apache-ant' 'unzip')
source=('http://apache.cict.fr/xmlgraphics/batik/batik-src-1.7.zip')
md5sums=('c117ca2241907f62a2b3031167ebf917')
build() {
cd $srcdir/batik-$pkgver
ant all-jar || return 1
install -d $pkgdir/usr/share/java/batik || return 1
install --mode=644 \
$srcdir/batik-$pkgver/batik-$pkgver/lib/batik-all.jar \
$pkgdir/usr/share/java/batik/ || return 1
cp -r $srcdir/batik-$pkgver/lib/*.jar \
$pkgdir/usr/share/java/batik/ || return 1
}