mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 23:57:14 +08:00
55 lines
1.6 KiB
Bash
55 lines
1.6 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=dawn
|
|
_pkgname=dawn-rpg
|
|
pkgver=0.0.43
|
|
pkgrel=1
|
|
pkgdesc="2D RPG set in a fantasy world."
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL3')
|
|
url="http://dawn-rpg.sourceforge.net/wiki"
|
|
depends=('sdl' 'sdl_image' 'sdl_mixer' 'libgl' 'mesa' 'freeglut' 'freetype2' 'lua' 'toluapp')
|
|
makedepends=('autoconf' 'automake')
|
|
replaces=('dawn-rpg')
|
|
changelog=ChangeLog
|
|
source=("http://downloads.sourceforge.net/project/$_pkgname/$_pkgname/$pkgname-$pkgver.tar.gz")
|
|
md5sums=('b4b2e12ed5122621ae8fa9622562a99d')
|
|
|
|
build()
|
|
{
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
# Emptied for this configuration (else you get a tolua++ fail):
|
|
LDFLAGS="" \
|
|
./configure \
|
|
--prefix=/usr
|
|
make
|
|
}
|
|
|
|
package()
|
|
{
|
|
cd $srcdir/$pkgname-$pkgver
|
|
# make DESTDIR=$pkgdir install
|
|
|
|
install -Dm 775 $srcdir/$pkgname-$pkgver/$_pkgname $pkgdir/usr/share/$pkgname/$pkgname
|
|
cp -R $srcdir/$pkgname-$pkgver/data $pkgdir/usr/share/$pkgname/data
|
|
install $srcdir/$pkgname-$pkgver/settings.lua $pkgdir/usr/share/$pkgname/settings.lua
|
|
|
|
# Temporal launcher:
|
|
mkdir -p $pkgdir/usr/bin
|
|
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
|
|
|
|
# Change permissions so all users in "games" group can save games.
|
|
chown :games $pkgdir/usr/share/$pkgname/ -R
|
|
chmod 775 $pkgdir/usr/share/$pkgname/ -R
|
|
}
|