diff options
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 20 | ||||
-rw-r--r-- | th07.sh | 10 |
3 files changed, 18 insertions, 21 deletions
@@ -1,8 +1,8 @@ pkgbase = th07 pkgdesc = Perfect cherry blossom trial version. Seventh game of the Touhou Project series. (via wine) pkgver = 0.11 - pkgrel = 4 - url = http://www16.big.or.jp/~zun/html/th07.html + pkgrel = 6 + url = https://www16.big.or.jp/~zun/html/th07.html install = th07.install arch = i686 arch = x86_64 @@ -16,12 +16,11 @@ pkgbase = th07 source = th07.desktop source = license source = th07.xpm - source = http://www16.big.or.jp/~zun/data/soft/youmu_tr011.lzh - md5sums = 68444481ddd6d84e18e801ef3b22db84 + source = https://www16.big.or.jp/~zun/data/soft/youmu_tr011.lzh + md5sums = 49ffef262520a2858e9c6cabc26e59a5 md5sums = 35d37eb00a1f7e6fc265f47e639ddfbc md5sums = 5de1cb787942308b7620f93a176367d9 md5sums = ecdec576d60c662738e2495947543b95 md5sums = 05360e859c1a3ca173b9d57d96a45b9b pkgname = th07 - @@ -2,40 +2,38 @@ pkgname=th07 pkgver=0.11 -pkgrel=4 +pkgrel=6 pkgdesc="Perfect cherry blossom trial version. Seventh game of the Touhou Project series. (via wine)" arch=(i686 x86_64) -url="http://www16.big.or.jp/~zun/html/th07.html" +url="https://www16.big.or.jp/~zun/html/th07.html" license=('custom') depends=('wine') -makedepends=(lha) +makedepends=('lha') optdepends=('timidity++: to get MIDI background music') source=( th07.sh th07.desktop license th07.xpm - http://www16.big.or.jp/~zun/data/soft/youmu_tr011.lzh + https://www16.big.or.jp/~zun/data/soft/youmu_tr011.lzh ) -noextract=("youmu_tr011.lzh") #http://homepage.ntlworld.com/steven.mitchell83/th07_english_patch_1%5b1%5d.0.exe) install=${pkgname}.install -md5sums=('68444481ddd6d84e18e801ef3b22db84' +md5sums=('49ffef262520a2858e9c6cabc26e59a5' '35d37eb00a1f7e6fc265f47e639ddfbc' '5de1cb787942308b7620f93a176367d9' 'ecdec576d60c662738e2495947543b95' '05360e859c1a3ca173b9d57d96a45b9b') - +noextract=(youmu_tr011.lzh) options=(!strip) build() { - cd $srcdir/ - lha e youmu_tr011.lzh - cd youmu - find -type d|grep -va '\(html\|^.$\)'|xargs -I dir mv "dir" th07man + lha xf youmu_tr011.lzh + cd $srcdir/youmu + mv $'\203'\}$'\203'j$'\203'$'\205'$'\203'A$'\203'$'\213' th07man ls *.txt|grep -va '^[rc]'|xargs -I file mv file info.txt } package() { @@ -13,10 +13,10 @@ if [ ! -f "$HOME"/.th07/th07.cfg ] ; then echo "AAABAAIABAD//////////wMAAAACAAcAWAJYAgIDAAIBAQAAAgABAAAAAAAAAAAAAAAAAAEIAAA=" |base64 -d > "$HOME"/.th07/th07.cfg || exit 1 fi -if [ "" != "`whereis timidity|grep '/usr/bin'`" ] ; then - if [ "" == "`ps -A|grep timidity`" ] ; then +if [ -n "`whereis timidity|grep '/usr/bin'`" ] ; then + if [ -z "`ps -A|grep timidity`" ] ; then timidity -iA & - myins="true" + timiditypid=$! fi fi @@ -29,7 +29,7 @@ fi if [ ! -e "$HOME"/.th07/th07e.exe ]; then wine "$HOME"/.th07/th07.exe "$@" fi -if [ "true" == "$myins" ] ; then - killall timidity +if [ -n "$timiditypid" ]; then + kill $timiditypid fi |