1 # Contributor: Kozec <kozec at kozec dot com>
2 pkgname=ivory-mahjongg-bin
5 pkgdesc="Freeware solitaire tile matching game based on the single player game known most often as Mahjongg"
6 url="http://ivorymahjongg.com/"
7 depends=('java-runtime' 'java3d' 'log4j')
9 "http://ivorymahjongg.com/distributions/Ivory-${pkgver}-Linux.tar.gz"
11 "ivory-mahjongg.desktop"
15 arch=('i686' 'x86_64')
16 noextract=("Ivory-${pkgver}-Linux.tar.gz")
17 md5sums=('e4b5fd6f19d6de7c382373c813a80987'
18 'dfd581f3ebbaadcbdc7c3769fa03d81f'
19 'f0be944bab9d96b86a339c5d7ac87109'
20 'e51b5766dcd96c87abfe4fe824362ed5')
27 mkdir -p "$pkgdir/usr/share/licenses/ivory-mahjongg-bin"
28 mkdir -p "$pkgdir/usr/share/pixmaps"
29 mkdir -p "$pkgdir/usr/share/applications/"
30 mkdir -p "$pkgdir/usr/bin"
31 mkdir -p "$pkgdir/opt/games/ivory-mahjongg"
32 cd "$pkgdir/opt/games/ivory-mahjongg"
33 tar xf "$srcdir/Ivory-${pkgver}-Linux.tar.gz" \
34 --strip-components=1 \
35 --exclude="j3d[^-]*" \
37 --exclude="vecmath.jar" \
38 --exclude="log4j.jar" \
40 ln -s "../../../../opt/games/ivory-mahjongg/license.txt" "$pkgdir/usr/share/licenses/ivory-mahjongg-bin/LICENSE"
41 cp -L "$srcdir/ivory-mahjongg" "$pkgdir/usr/bin"
42 cp -L "$srcdir/ivory-mahjongg.png" "$pkgdir/usr/share/pixmaps"
43 cp -L "$srcdir/ivory-mahjongg.desktop" "$pkgdir/usr/share/applications"