desktop/dustrac/PKGBUILD

51 lines
1.8 KiB
Bash
Raw Normal View History

2012-06-07 16:30:42 +08:00
pkgname=dustrac
2017-01-04 19:49:59 +08:00
_name=DustRacing2D
pkgver=1.12.0
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')
2017-01-04 19:49:59 +08:00
url="https://github.com/juzzlin/DustRacing2D"
2012-06-07 16:30:42 +08:00
screenshot="http://sourceforge.net/projects/dustrac/screenshots/325655"
license=('GPL3')
2017-01-04 19:49:59 +08:00
depends=('qt5-base' 'openal' 'libvorbis' 'glu')
makedepends=('cmake' 'qt5-tools')
source=(https://github.com/juzzlin/$_name/archive/$pkgver.tar.gz)
sha1sums=('859dcfab8ceb6c27adb73d2627ada17991b400ac')
2012-06-07 16:30:42 +08:00
build() {
2017-01-04 19:49:59 +08:00
cd $srcdir/$_name-$pkgver
2012-06-07 16:30:42 +08:00
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
.
make
}
package() {
2017-01-04 19:49:59 +08:00
cd $srcdir/$_name-$pkgver
2012-06-07 16:30:42 +08:00
# Manual installation.
2017-01-04 19:49:59 +08:00
install -d $pkgdir/usr/share/$pkgname
install -d $pkgdir/usr/bin
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
2012-07-24 16:10:24 +08:00
# Game.
2017-01-04 19:49:59 +08:00
echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname-game
echo "cd /usr/share/$pkgname" >> $pkgdir/usr/bin/$pkgname-game
echo "./$pkgname-game" >> $pkgdir/usr/bin/$pkgname-game
chmod +x $pkgdir/usr/bin/$pkgname-game
2012-07-24 16:10:24 +08:00
# 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
2017-01-04 19:49:59 +08:00
chmod +x $pkgdir/usr/bin/$pkgname-editor
# .desktop files and icons
install -D $srcdir/$_name-$pkgver/src/dustrac-game.desktop.in $pkgdir/usr/share/applications/dustrac-game.desktop
install -D $srcdir/$_name-$pkgver/src/dustrac-editor.desktop.in $pkgdir/usr/share/applications/dustrac-editor.desktop
install -D $srcdir/$_name-$pkgver/data/icons/dustrac-game.png $pkgdir/usr/share/pixmaps/dustrac-game.png
install -D $srcdir/$_name-$pkgver/data/icons/dustrac-editor.png $pkgdir/usr/share/pixmaps/dustrac-editor.png
2012-06-07 16:30:42 +08:00
}