mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 00:27:15 +08:00
51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
|
#
|
||
|
# Games Packages for Chakra, part of chakra-project.org
|
||
|
#
|
||
|
# Maintainer: Adrián Chaves Fernández (Gallaecio)
|
||
|
|
||
|
pkgname=dustrac
|
||
|
pkgver=0.2.1
|
||
|
pkgrel=1
|
||
|
pkgdesc="Dust Racing (Dustrac) is a tile-based, 2D racing game."
|
||
|
arch=('i686' 'x86_64')
|
||
|
url="http://sourceforge.net/projects/dustrac/"
|
||
|
screenshot="http://sourceforge.net/projects/dustrac/screenshots/325655"
|
||
|
license=('GPL3')
|
||
|
depends=(qt)
|
||
|
makedepends=(cmake)
|
||
|
source=(http://downloads.sourceforge.net/project/$pkgname/src/$pkgname-$pkgver.tar.gz)
|
||
|
md5sums=('4eade7f5eab15395062a6488941b46e0')
|
||
|
|
||
|
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 dustrac 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" >> $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 "./editor" >> $pkgdir/usr/bin/$pkgname-editor
|
||
|
chmod +x $pkgdir/usr/bin/$pkgname-editor
|
||
|
|
||
|
}
|