blob: 0b43ae12782602b3bc9b140dd77d5b0514316fad (
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
42
43
|
# Contributor: Adrian Petrescu <apetresc@gmail.com>
# Maintainer: Adrian Petrescu <apetresc@gmail.com>
pkgname=hexgui
pkgver=0.9.3
pkgrel=2
pkgdesc='SGF editor and engine client for the board game Hex'
arch=('any')
url='http://sourceforge.net/p/benzene/hexgui'
license=('GPL3')
depends=('bash' 'java-runtime')
makedepends=('apache-ant' 'java-environment')
install=${pkgname}.install
source=("https://github.com/apetresc/hexgui/archive/v$pkgver.tar.gz"
'hexgui'
'hexgui.xml'
'hexgui.desktop')
md5sums=('99ae008ed53249524bd3fe1c561e3a58'
'77035cf26c8a2e4c656ad874b44ccf29'
'df0600845bfe27c7f5775f274ee12202'
'5f37d97676904740e1d05a60a8ca6375')
build() {
cd $pkgname-$pkgver
ant
}
check() {
cd $pkgname-$pkgver
bin/hexgui -version
}
package() {
mkdir -p $pkgdir/usr/share/java/hexgui
mkdir -p $pkgdir/usr/bin
cp $srcdir/$pkgname-$pkgver/lib/hexgui.jar $pkgdir/usr/share/java/hexgui/hexgui.jar
cp hexgui $pkgdir/usr/bin/hexgui
install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
install -Dm644 ${srcdir}/${pkgname}.xml ${pkgdir}/usr/share/mime/packages/${pkgname}.xml
install -Dm644 $srcdir/$pkgname-$pkgver/src/hexgui/images/hexgui-48x48-notrans.png ${pkgdir}/usr/share/pixmaps/hexgui.png
}
|