blob: 7c9df5bb42ea695da2d68167c506c836d933ef3f (
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
|
# Maintainer: Nathan Chere <aur at nathanchere dot com dot au>
pkgname=forge-gui-desktop
pkgver=1.6.64
pkgrel=1
pkgdesc="Implementation of Magic the Gathering that lets you play against a computer AI"
arch=('any')
url="https://www.slightlymagic.net/wiki/Forge"
license=('GPL3')
depends=('jre8-openjdk')
source=("https://releases.cardforge.org/forge/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"
"https://github.com/Card-Forge/forge/raw/e16a80e822dd040cc6c768152f3493eb4f2ce09a/AppIcon.png")
sha1sums=('d7a70b2ee0fc0899d248528895d7fac3aeb50a43'
'9a957969da65cf281ceb31a3737bb3b8b799f14b')
package() {
cd "$srcdir"
install -d -m0755 "$pkgdir"/usr/share/$pkgname/res
cp -r "$srcdir"/res/* "$pkgdir"/usr/share/$pkgname/res
install -Dm0664 "$srcdir"/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
install -Dm0644 "$srcdir"/AppIcon.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
install -Dm0644 "$srcdir"/$pkgname-$pkgver-jar-with-dependencies.jar "$pkgdir"/usr/share/java/$pkgname.jar
_deskfile="$pkgdir/usr/share/applications/$pkgname.desktop"
_startfile="$pkgdir/usr/bin/$pkgname.sh"
install -Dm0644 /dev/stdin "$_deskfile"<<END
[Desktop Entry]
Name=$pkgname
Comment=$pkgdesc
Exec=/usr/bin/$pkgname.sh
Terminal=false
Type=Application
Categories=Game;
Keywords=mtg magic gathering
Icon=$pkgname
END
install -Dm0644 /dev/stdin "$_startfile"<<END
#!/bin/sh
cd "/usr/share/$pkgname"
exec /usr/bin/java -Xmx1024m -jar '/usr/share/java/$pkgname.jar'
END
chmod +x "$_startfile"
}
|