mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 20:57:18 +08:00
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
#
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=speed-dreams
|
|
pkgver=1.4.0
|
|
_pkgver=1.4.0-r2307
|
|
pkgrel=2
|
|
pkgdesc="Speed Dreams is a fork of TORCS which aims to implement exciting new features, improving visual and physics realism."
|
|
arch=('i686' 'x86_64')
|
|
url="http://speed-dreams.sourceforge.net/"
|
|
license=('GPL2')
|
|
depends=('enet' 'freealut' 'freeglut' 'libpng' 'libxi' 'libxmu' 'libxrandr' 'plib>=1.8.3' 'libjpeg' 'zlib')
|
|
source=("http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$_pkgver-src.tar.bz2/download"
|
|
"$pkgname.sh")
|
|
md5sums=('92c324c2c47a598dea9278d9a66c5b78'
|
|
'f0f5040a3746084d9967e055afa35f32')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver-src
|
|
|
|
unset LDFLAGS
|
|
|
|
./configure \
|
|
--prefix=/opt/$pkgname \
|
|
--x-includes=/usr/include \
|
|
--x-libraries=/usr/lib
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver-src
|
|
make DESTDIR=$pkgdir/ install datainstall
|
|
|
|
install -D -m644 icon.png $pkgdir/usr/share/pixmaps/speed-dreams.png
|
|
install -D -m755 $srcdir/$pkgname.sh $pkgdir/etc/profile.d/$pkgname.sh
|
|
|
|
find $pkgdir/ -type d -exec chmod 755 {} \;
|
|
}
|