updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / dragonhunt / PKGBUILD
blob879c8e125fc58e60a0a3a7c13d0c151d4b1638e0
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: rabyte <rabyte__gmail>
4 pkgname=dragonhunt
5 pkgver=3.56
6 pkgrel=3
7 pkgdesc="An extensible graphical RPG"
8 arch=('any')
9 url="http://emhsoft.com/dh.html"
10 license=('GPL' 'CCPL' 'custom')
11 depends=('python-pygame')
12 install=$pkgname.install
13 source=(http://emhsoft.com/dh/Dragon_Hunt-$pkgver.tar.gz
14         $pkgname.sh
15         $pkgname-editor.sh
16         $pkgname-setup.sh
17         $pkgname.patch)
18 md5sums=('fa5aecc577b8ea7ece211c8f20ff1f0a'
19          '243751a413d2bca4938a93b846144532'
20          '4aa3d27739103393666a492e2193be47'
21          'f53126b7645aa74921a8d93b4eee5658'
22          'b32983fda5e84c40f9cf8701c6feb3ad')
24 build() {
25   cd "$srcdir"/Dragon_Hunt-$pkgver
27   # fix path to the saves/settings directory
28   patch -Np0 -i ../$pkgname.patch || return 1
30   # remove some unneded files
31   rm -f code/.{cvsignore,directory}
33   # install data
34   install -m755 -d "$pkgdir"/usr/share/$pkgname
35   cp -rf code modules "$pkgdir"/usr/share/$pkgname/
37   # set permissions
38   find "$pkgdir"/usr/share/$pkgname -type d -exec chmod 755 {} +
39   find "$pkgdir"/usr/share/$pkgname -type f -exec chmod 644 {} +
41   # isntall docs
42   install -m755 -d "$pkgdir"/usr/share/doc/$pkgname
43   install -m755 -t "$pkgdir"/usr/share/doc/$pkgname \
44     docs/{example_map,Items,tiles}.txt docs/*.html {README,settings}.txt
46   # install license
47   sed -n "/Graphic License/,/access to anyway/p" README.txt > LICENSE
48   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
50   # install launchers
51   install -Dm755 ../$pkgname.sh "$pkgdir"/usr/bin/$pkgname
52   install -Dm755 ../$pkgname-editor.sh "$pkgdir"/usr/bin/$pkgname-editor
53   install -Dm755 ../$pkgname-setup.sh "$pkgdir"/usr/bin/$pkgname-setup