desktop/dustrac/PKGBUILD

48 lines
1.4 KiB
Bash
Raw Normal View History

2014-11-19 07:04:56 +08:00
# Maintainer: Jeff Huang <s8321414[at]gmail[dot]com>
2013-07-05 03:25:30 +08:00
# Maintainer: Adrin Chaves Fernndez (Gallaecio) <adriyetichaves@gmail.com>
2012-06-07 16:30:42 +08:00
pkgname=dustrac
2015-01-19 14:52:36 +08:00
pkgver=1.9.2
2012-06-07 16:30:42 +08:00
pkgrel=1
pkgdesc="Dust Racing (Dustrac) is a tile-based, 2D racing game."
2014-03-11 09:05:12 +08:00
arch=('x86_64')
2012-06-07 16:30:42 +08:00
url="http://sourceforge.net/projects/dustrac/"
screenshot="http://sourceforge.net/projects/dustrac/screenshots/325655"
license=('GPL3')
2014-11-18 13:43:26 +08:00
depends=('qt5-base' 'qt5-tools' 'openal' 'libvorbis' 'glu')
makedepends=('cmake')
2012-06-07 16:30:42 +08:00
source=(http://downloads.sourceforge.net/project/$pkgname/src/$pkgname-$pkgver.tar.gz)
2015-01-19 14:52:36 +08:00
md5sums=('71fc2e0b82b4256b01c5709c5686f7bb')
2012-06-07 16:30:42 +08:00
build() {
cd $srcdir/$pkgname-$pkgver
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
.
make
}
package() {
cd $srcdir/$pkgname-$pkgver
# Manual installation.
mkdir -p $pkgdir/usr/share/$pkgname
2012-07-26 04:39:40 +08:00
cp -R data $pkgname-game $pkgname-editor $pkgdir/usr/share/$pkgname
2012-06-07 16:30:42 +08:00
# Executables:
mkdir -p $pkgdir/usr/bin
2012-07-24 16:10:24 +08:00
# Game.
echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname
echo "cd /usr/share/$pkgname" >> $pkgdir/usr/bin/$pkgname
2012-07-26 04:39:40 +08:00
echo "./$pkgname-game" >> $pkgdir/usr/bin/$pkgname
2012-07-24 16:10:24 +08:00
chmod +x $pkgdir/usr/bin/$pkgname
# Editor.
echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname-editor
echo "cd /usr/share/$pkgname" >> $pkgdir/usr/bin/$pkgname-editor
2012-07-26 04:39:40 +08:00
echo "./$pkgname-editor" >> $pkgdir/usr/bin/$pkgname-editor
2013-09-04 09:45:47 +08:00
chmod +x $pkgdir/usr/bin/$pkgname-editor
2012-06-07 16:30:42 +08:00
}