updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / ivory-mahjongg-bin / PKGBUILD
blobbc429fc0d8e3668e7901922d6ffd60dd43df70bf
1 # Contributor: Kozec <kozec at kozec dot com>
2 pkgname=ivory-mahjongg-bin
3 pkgver=1.0.1
4 pkgrel=1
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')
8 source=(
9         "http://ivorymahjongg.com/distributions/Ivory-${pkgver}-Linux.tar.gz"
10         "ivory-mahjongg"
11         "ivory-mahjongg.desktop"
12         "ivory-mahjongg.png"
13         )
14 license=('custom')
15 arch=('i686' 'x86_64')
16 noextract=("Ivory-${pkgver}-Linux.tar.gz")
17 md5sums=('e4b5fd6f19d6de7c382373c813a80987'
18          'dfd581f3ebbaadcbdc7c3769fa03d81f'
19          'f0be944bab9d96b86a339c5d7ac87109'
20          'e51b5766dcd96c87abfe4fe824362ed5')
22 build() {
23         return 0
26 package() {
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[^-]*" \
36                 --exclude="libj3d*" \
37                 --exclude="vecmath.jar" \
38                 --exclude="log4j.jar" \
39                 || return 1
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"