mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
pkgname=dustrac
|
|
pkgver=1.11.0
|
|
pkgrel=1
|
|
pkgdesc="Dust Racing (Dustrac) is a tile-based, 2D racing game."
|
|
arch=('x86_64')
|
|
url="http://sourceforge.net/projects/dustrac/"
|
|
screenshot="http://sourceforge.net/projects/dustrac/screenshots/325655"
|
|
license=('GPL3')
|
|
depends=('qt5-base' 'qt5-tools' 'openal' 'libvorbis' 'glu')
|
|
makedepends=('cmake')
|
|
source=(http://downloads.sourceforge.net/project/$pkgname/src/$pkgname-$pkgver.tar.gz)
|
|
md5sums=('bac37f501a6fbc17307ad6ce223ddb60')
|
|
|
|
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
|
|
cp -R data $pkgname-game $pkgname-editor $pkgdir/usr/share/$pkgname
|
|
|
|
# Executables:
|
|
mkdir -p $pkgdir/usr/bin
|
|
|
|
# Game.
|
|
echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname
|
|
echo "cd /usr/share/$pkgname" >> $pkgdir/usr/bin/$pkgname
|
|
echo "./$pkgname-game" >> $pkgdir/usr/bin/$pkgname
|
|
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
|
|
echo "./$pkgname-editor" >> $pkgdir/usr/bin/$pkgname-editor
|
|
chmod +x $pkgdir/usr/bin/$pkgname-editor
|
|
}
|