1 # Maintainer: iruel <moot at 404chan dot tk>
2 # Contributor (to th07 pkgbuild): chris_L <chrislcenter dash mamoru at yahoo.com dot mx>
7 pkgdesc="The eighth game of the Touhou Project series, Imperishable Night trial version (via wine). Easy upgrade to full version."
9 url="http://www16.big.or.jp/~zun/html/th08top.html"
12 [ "$CARCH" = i686 ] && depends=(wine)
13 [ "$CARCH" = x86_64 ] && depends=(bin32-wine)
15 [ "$CARCH" = i686 ] && makedepends=(lha)
16 [ "$CARCH" = x86_64 ] && makedepends=(bin32-lha)
17 optdepends=('timidity++: to get MIDI background music')
18 source=(th08.sh th08.desktop license http://dl.dropbox.com/u/22186524/files/th08.png http://mirror0.fuzzy2.com/zun/eiya_tr003.lzh)
19 install=${pkgname}.install
20 md5sums=('8eb909dd8b016ca81ac498c77876b693'
21 '8849405deb2bc3954c720468be36e8c4'
22 '5de1cb787942308b7620f93a176367d9'
23 'c6cea48ee3d175b01d512f06481f8063'
24 'c42647202a695bd1fdd2d88ce6615d53')
33 find -type d|grep -v '\(html\|^.$\)'|xargs -I dir mv "dir" th08man
34 ls *.txt|grep -v '^[rc]'|xargs -I file mv file info.txt
36 install -d -m755 $pkgdir/usr/share/
37 cp -R eiya $pkgdir/usr/share/$pkgname
38 mv $pkgdir/usr/share/$pkgname/th08tr.exe $pkgdir/usr/share/$pkgname/th08.exe
39 find $pkgdir/usr/share/th08 -type d -exec chmod 755 "{}" \;
40 find $pkgdir/usr/share/th08 -type f -exec chmod 644 "{}" \;
41 install -d -m755 $pkgdir/usr/bin
42 install -m755 th08.sh $pkgdir/usr/bin/$pkgname
43 install -d -m755 $pkgdir/usr/share/applications
44 install -d -m755 $pkgdir/usr/share/pixmaps
45 install -d -m755 $pkgdir/usr/share/licenses/$pkgname
46 install -m755 th08.desktop $pkgdir/usr/share/applications
47 install -m755 th08.png $pkgdir/usr/share/pixmaps/th08.png
48 install -m755 license $pkgdir/usr/share/licenses/$pkgname/license