blob: 0b565c3d9ac5bc63614fae7dc14897b30311637e (
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
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
pkgname=monkeyjump
pkgver=0.5
pkgrel=1
pkgdesc='Minimalistic GUI for playing Go with GnuGo and other GTP applications'
arch=('any')
url='http://github.com/xyproto/monkeyjump'
license=('GPL2')
depends=('python2-pygame' 'gnugo')
makedepends=('setconf' 'python2-setuptools')
backup=('etc/monkeyjump/gnugocmd.conf' 'etc/monkeyjump/theme.conf' 'etc/monkeyjump/keybindings.conf')
source=('monkeyjump::git://github.com/xyproto/monkeyjump.git#commit=a6fcea4e0f03c09a47b0117567893d0fe882b2a8')
md5sums=('SKIP')
prepare() {
cd "$pkgname"
gendesk -f -n \
--pkgname="$pkgname" \
--pkgdesc="$pkgdesc" \
--exec="/usr/bin/monkeyjump 19" \
--categories="Game;BoardGame;" \
--terminal=true
setconf monkeyjump CONFDIR \"/etc/monkeyjump\"
setconf monkeyjump THEMEDIR \"/usr/share/monkeyjump/themes\"
}
package() {
cd "$pkgname"
python2 setup.py install --root="$pkgdir" --optimize=1
# Executable
install -Dm755 monkeyjump "$pkgdir/usr/bin/monkeyjump"
# Themes
install -d "$pkgdir/usr/share/monkeyjump/themes"
cp -r themes/* "$pkgdir/usr/share/monkeyjump/themes/"
# Configuration
install -d "$pkgdir/etc/monkeyjump"
install -Dm644 conf/* "$pkgdir/etc/monkeyjump/"
# Desktop shortcut and icon
install -Dm644 "$pkgname.desktop" \
"$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 "dotimages/$pkgname.png" \
"$pkgdir/usr/share/pixmaps/$pkgname.png"
}
# vim:set ts=2 sw=2 et:
|