updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / protege-core / PKGBUILD
blobb928dc8f9a6dc1136bad19cb892b99cb5c52d08b
1 # Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
2 pkgname=protege-core
3 _realname=protege
4 pkgver=3.3.1
5 pkgrel=1
6 pkgdesc="Free, open source ontology editor and knowledge-base framework - core"
7 arch=('i686' 'x86_64')
8 url="http://protege.stanford.edu/"
9 license=('MPL')
10 conflicts=(protege)
11 depends=(java-runtime)
12 makedepends=(java-environment apache-ant javacc)
13 source=(http://$_realname.stanford.edu/download/release/$_realname-src-$pkgver.zip
14         local.properties $_realname.sh)
15 md5sums=('8dde955bd290af7bec3bf89a4fcd2327'
16          'e18d69e0947e2ad2663b9fb26cd41228'
17          '085ca5896c22a23ae43aeb39229fdb74')
18 build() {
19   cd "$srcdir/Protege $pkgver"
20   cp "$srcdir/local.properties" .
21   ant jar || return 1
22   install -D "dist/$_realname.jar" "$pkgdir/usr/share/java/$_realname/$_realname.jar"
23   install -d "$pkgdir/usr/share/java/$_realname/plugins"
24   cp -r lib/* "$pkgdir/usr/share/java/$_realname"
25   install -Dm755 "$srcdir/$_realname.sh" "$pkgdir/usr/bin/$_realname"