updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / th07 / PKGBUILD
blobe5d526067e65bcd94b61c2f27a7e18d34b9e0c7e
1 # Contributor: chris_L <chrislcenter dash mamoru at yahoo.com dot mx>
3 pkgname=th07
4 pkgver=0.11
5 pkgrel=1
6 pkgdesc="Perfect cherry blossom trial version. Seventh game of the Touhou Project series. (via wine)"
7 arch=(i686 x86_64)
8 url="http://www16.big.or.jp/~zun/html/th07.html"
9 license=('custom')
10 depends=()
11 [ "$CARCH" = i686   ] && depends=(wine)
12 [ "$CARCH" = x86_64 ] && depends=(bin32-wine)
13 makedepends=()
14 [ "$CARCH" = i686   ] && makedepends=(lha)
15 [ "$CARCH" = x86_64 ] && makedepends=(bin32-lha)
16 optdepends=('timidity++: to get MIDI background music')
17 source=(th07.sh th07.desktop license http://www.fileden.com/files/2010/12/31/3049394//th07.png http://www.fileden.com/files/2010/12/31/3049394//th07.cfg http://www16.big.or.jp/~zun/data/soft/youmu_tr011.lzh)
18 #source=(th07.sh th07.desktop license http://www.mdn.fm/files/234823_bcror/th07icon.png http://www.mdn.fm/files/234820_6i1zs/th07.cfg http://www16.big.or.jp/~zun/data/soft/youmu_tr011.lzh)
19 install=${pkgname}.install
20 md5sums=('1bb8a96dcd5f53b170bc00dc10243cee'
21 '5522458be064b6205c54d8659500150b'
22 '5de1cb787942308b7620f93a176367d9'
23 '4926c26540eca5e72fe73560cdaa1349'
24 'f96700e07044abce648e8e4b30f8558a'
25 '05360e859c1a3ca173b9d57d96a45b9b')
29 noextract=()
30 options=(!strip)
32 build() {
33         cd $srcdir/
34         lha e youmu_tr011.lzh
35         cd youmu
36         find -type d|grep -v '\(html\|^.$\)'|xargs -I dir mv "dir" th07man
37         ls *.txt|grep -v '^[rc]'|xargs -I file mv file info.txt
38         cd ..
39         install -d -m755 $pkgdir/usr/share/
40         cp -R youmu $pkgdir/usr/share/$pkgname
41         cp th07.cfg $pkgdir/usr/share/$pkgname/th07.cfg
42         find $pkgdir/usr/share/th07 -type d -exec chmod 755 "{}" \;
43         find $pkgdir/usr/share/th07 -type f -exec chmod 644 "{}" \;
44         install -d -m755 $pkgdir/usr/bin
45         install -m755 th07.sh $pkgdir/usr/bin/$pkgname
46         install -d -m755 $pkgdir/usr/share/applications
47         install -d -m755 $pkgdir/usr/share/pixmaps
48         install -d -m755 $pkgdir/usr/share/licenses/$pkgname
49         install -m755 th07.desktop $pkgdir/usr/share/applications
50         install -m755 th07.png $pkgdir/usr/share/pixmaps/th07.png
51         install -m755 license $pkgdir/usr/share/licenses/$pkgname/license