desktop/ardentryst/PKGBUILD

39 lines
1.1 KiB
Bash
Raw Normal View History

2010-12-23 02:12:13 +08:00
pkgname=ardentryst
pkgver=1.7.1
_pkgver=1.71
2016-02-27 20:07:50 +08:00
pkgrel=4
2010-12-23 02:12:13 +08:00
pkgdesc="Ardentryst is an action/RPG sidescroller, focused not just on fighting, but on story, and character development."
arch=('any')
license=('GPL3' 'CCPL:by')
2010-12-23 02:12:13 +08:00
url="http://jordan.trudgett.com/"
2016-02-27 20:07:50 +08:00
depends=('python2-pygame')
2012-03-07 19:00:46 +08:00
categories=('games')
2016-02-27 20:07:50 +08:00
source=("http://downloads.sourceforge.net/$pkgname/$pkgname$_pkgver.tar.gz"
"$pkgname.sh")
sha1sums=('13fea2736b8289587c1cefa98ee4df2a76681e2e'
'10fecc08847f9a26fc57b6e4cd7f6df7501df053')
2010-12-23 02:12:13 +08:00
package() {
2016-02-27 20:07:50 +08:00
cd "$srcdir"/$pkgname$_pkgver
# install data
install -m755 -d "$pkgdir"/usr/share/$pkgname
cp -rf \
{Base,Data,Fonts,Levels,Music,Sounds,COPYING*} \
*.{py,txt,png,xml,dig} \
"$pkgdir"/usr/share/$pkgname/
# set permissions
find "$pkgdir"/usr/share/$pkgname -type d -exec chmod 755 {} +
find "$pkgdir"/usr/share/$pkgname -type f -exec chmod 644 {} +
2010-12-23 02:12:13 +08:00
2016-02-27 20:07:50 +08:00
# install icon
install -Dm644 icon.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
2010-12-23 02:12:13 +08:00
2016-02-27 20:07:50 +08:00
# isntall .desktop file
install -Dm644 ${pkgname^a}.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
2010-12-23 02:12:13 +08:00
2016-02-27 20:07:50 +08:00
# install launcher
install -Dm755 ../$pkgname.sh "$pkgdir"/usr/bin/$pkgname
2010-12-23 02:12:13 +08:00
}