summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1df6dd4103a0ceab9c324c4ab5847e2c9d4f6552 (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
# Maintainer: Bennett Piater <bennett at piater dot name>

pkgname='battlescribe'
pkgver='2.00.05'
pkgrel=1
pkgdesc="An army list builder for table-top games."
arch=(any)
url="http://battlescribe.net/?tab=downloads"
_watch="$url"
license=('custom')

depends=('java-environment' 'bash')
source=("http://battlescribe.net/files/BattleScribe_$pkgver""_Multi.zip"
		"$pkgname.desktop"
		"$pkgname.png"
		'BattleScribe.sh')
md5sums=('b241ad2b9fc4beca787e967e642235ec'
         '0d18577e61b1c6a90f3258905410b03b'
         'd0fef06c5b080003f84a0e148fbe9261'
         'cf0f2351b3241aa80cd80854fd73045f')

package() {
	cd "$srcdir"

	# Copy files to system
	install -D -t "$pkgdir/usr/share/java/$pkgname/" *.sh *.jar
	mv lib "$pkgdir/usr/share/java/$pkgname/"

	# Copy the licence
	install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" license.txt

	# Copy the desktop file and image
	install -Dm644 -t "$pkgdir/usr/share/applications/" *.desktop
	install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}