1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: rabyte <rabyte__gmail>
7 pkgdesc="An extensible graphical RPG"
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
18 md5sums=('fa5aecc577b8ea7ece211c8f20ff1f0a'
19 '243751a413d2bca4938a93b846144532'
20 '4aa3d27739103393666a492e2193be47'
21 'f53126b7645aa74921a8d93b4eee5658'
22 'b32983fda5e84c40f9cf8701c6feb3ad')
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}
34 install -m755 -d "$pkgdir"/usr/share/$pkgname
35 cp -rf code modules "$pkgdir"/usr/share/$pkgname/
38 find "$pkgdir"/usr/share/$pkgname -type d -exec chmod 755 {} +
39 find "$pkgdir"/usr/share/$pkgname -type f -exec chmod 644 {} +
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
47 sed -n "/Graphic License/,/access to anyway/p" README.txt > LICENSE
48 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
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