summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD67
1 files changed, 33 insertions, 34 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 90473feab11..85503f830ef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,50 +1,49 @@
-# Maintainer: iruel <moot at 404chan dot tk>
-# Contributor (to th07 pkgbuild): chris_L <chrislcenter dash mamoru at yahoo.com dot mx>
+# Maintainer: chris_L <chrislcenter dash mamoru at yahoo.com dot mx>
+# Contributor: iruel <moot at 404chan dot tk>
pkgname=th08
pkgver=0.03
-pkgrel=3
+pkgrel=4
pkgdesc="The eighth game of the Touhou Project series, Imperishable Night trial version (via wine). Easy upgrade to full version."
arch=(i686 x86_64)
url="http://www16.big.or.jp/~zun/html/th08top.html"
license=('custom')
-depends=()
-[ "$CARCH" = i686 ] && depends=(wine)
-[ "$CARCH" = x86_64 ] && depends=(bin32-wine)
-makedepends=()
-[ "$CARCH" = i686 ] && makedepends=(lha)
-[ "$CARCH" = x86_64 ] && makedepends=(bin32-lha)
+depends=('wine')
+makedepends=('lha')
optdepends=('timidity++: to get MIDI background music')
-source=(th08.sh th08.desktop license http://dl.dropbox.com/u/22186524/files/th08.png http://mirror0.fuzzy2.com/zun/eiya_tr003.lzh)
+source=(th08.sh th08.desktop license th08.xpm 'https://www.dropbox.com/s/0dwwpkokrko2f4m/eiya_tr003.lzh?dl=0')
install=${pkgname}.install
-md5sums=('8eb909dd8b016ca81ac498c77876b693'
-'8849405deb2bc3954c720468be36e8c4'
-'5de1cb787942308b7620f93a176367d9'
-'c6cea48ee3d175b01d512f06481f8063'
-'c42647202a695bd1fdd2d88ce6615d53')
+md5sums=('f68cc931fdce0d4fa65dfe0614c08db2'
+ '6ebb33c8949a426794bd6203f52a8cc5'
+ '5de1cb787942308b7620f93a176367d9'
+ 'fcd7e155a01b98b06affe5cf6d7f2ca9'
+ 'c42647202a695bd1fdd2d88ce6615d53')
noextract=()
options=(!strip)
build() {
- cd $srcdir/
- lha e eiya_tr003.lzh
- cd eiya
- find -type d|grep -v '\(html\|^.$\)'|xargs -I dir mv "dir" th08man
- ls *.txt|grep -v '^[rc]'|xargs -I file mv file info.txt
- cd ..
- install -d -m755 $pkgdir/usr/share/
- cp -R eiya $pkgdir/usr/share/$pkgname
- mv $pkgdir/usr/share/$pkgname/th08tr.exe $pkgdir/usr/share/$pkgname/th08.exe
- find $pkgdir/usr/share/th08 -type d -exec chmod 755 "{}" \;
- find $pkgdir/usr/share/th08 -type f -exec chmod 644 "{}" \;
- install -d -m755 $pkgdir/usr/bin
- install -m755 th08.sh $pkgdir/usr/bin/$pkgname
- install -d -m755 $pkgdir/usr/share/applications
- install -d -m755 $pkgdir/usr/share/pixmaps
- install -d -m755 $pkgdir/usr/share/licenses/$pkgname
- install -m755 th08.desktop $pkgdir/usr/share/applications
- install -m755 th08.png $pkgdir/usr/share/pixmaps/th08.png
- install -m755 license $pkgdir/usr/share/licenses/$pkgname/license
+ cd $srcdir/
+ mv 'eiya_tr003.lzh?dl=0' eiya_tr003.lzh
+ lha xf eiya_tr003.lzh
+ cd eiya
+ find -type d|LANG=C grep -v '\(html\|^.$\)'|xargs -I DIR mv DIR th08man
+ ls *.txt|LANG=C grep -v '^[rc]'|xargs -I FILE mv FILE info.txt
+}
+package() {
+ cd $srcdir/
+ install -d -m755 $pkgdir/usr/share/
+ cp -R eiya $pkgdir/usr/share/$pkgname
+ mv $pkgdir/usr/share/$pkgname/th08tr.exe $pkgdir/usr/share/$pkgname/th08.exe
+ find $pkgdir/usr/share/th08 -type d -exec chmod 755 "{}" \;
+ find $pkgdir/usr/share/th08 -type f -exec chmod 644 "{}" \;
+ install -d -m755 $pkgdir/usr/bin
+ install -m755 th08.sh $pkgdir/usr/bin/$pkgname
+ install -d -m755 $pkgdir/usr/share/applications
+ install -d -m755 $pkgdir/usr/share/pixmaps
+ install -d -m755 $pkgdir/usr/share/licenses/$pkgname
+ install -m755 th08.desktop $pkgdir/usr/share/applications
+ install -m755 th08.xpm $pkgdir/usr/share/pixmaps/th08.xpm
+ install -m755 license $pkgdir/usr/share/licenses/$pkgname/license
}