2 # Maintainer: Morten Linderud <morten@linderud.pw>
3 # Contributor: Thomas Dziedzic < gostrc at gmail >
4 # Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
5 # Contributor: Stefan Husmann <stefan-husmannt-online.de>
10 pkgdesc='Free, open source ontology editor and knowledge-base framework'
12 url='https://protege.stanford.edu/'
14 depends=('java-runtime>=8' 'graphviz')
15 makedepends=('maven' 'jdk8-openjdk')
16 source=("$pkgname-$pkgver.tar.gz::https://github.com/protegeproject/protege/archive/v$pkgver.tar.gz"
20 sha256sums=('e33157b1aeda494bad52c2ab2e5d78889a2848bbdd963d44e4acf11aadd729e9'
21 '1c531c402b58130ebcd7e5c0719b4afb49ce928e8e1af07d59c6ee61f26666cc'
22 'e0e054d864fafdee0c7a7a034b4a92fe2fe30fcce77f2aabd71afb57dbbbb0ab'
23 '3ee61d8cfcbcfc91c86c9dddc24e40f9fc0e6943bf879548340610c95d64d194')
27 mvn clean package -Dmaven.test.skip=true
31 cd "protege-$pkgver/protege-desktop/target/protege-$pkgver-platform-independent/Protege-$pkgver"
32 install -d "${pkgdir}/usr/share/java/${pkgname}"
33 cp -r * "${pkgdir}/usr/share/java/${pkgname}"
34 install -d "${pkgdir}/usr/bin"
35 install -D "${srcdir}/protege.sh" "${pkgdir}/usr/bin/protege"
36 install -Dm644 "${srcdir}/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
37 install -Dm644 "${srcdir}/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"