desktop/flare/PKGBUILD

57 lines
1.4 KiB
Bash
Raw Normal View History

2011-03-08 23:11:26 +08:00
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=flare
2012-01-03 00:46:58 +08:00
pkgver=0.15.1
_developer=clintbellanger
_code=e0debc9
2011-03-08 23:11:26 +08:00
pkgrel=1
pkgdesc="Action roleplaying game from an isometric perspective."
arch=('i686' 'x86_64')
url="http://clintbellanger.net/rpg/"
license=('GPL2' 'CCPL-by-sa')
2012-01-03 00:46:58 +08:00
depends=('sdl' 'sdl_image' 'sdl_mixer' 'sdl_ttf')
2011-03-08 23:11:26 +08:00
replaces=('osare')
2012-03-07 19:00:46 +08:00
categories=('games')
2011-03-08 23:11:26 +08:00
changelog=ChangeLog
2012-01-03 00:46:58 +08:00
source=($pkgname-$pkgver.tar.gz::https://github.com/$_developer/$pkgname/tarball/v$pkgver)
md5sums=('bb8eff66aa999fc7fd520c6c3772451f')
2011-03-08 23:11:26 +08:00
build() {
2012-01-03 00:46:58 +08:00
cd $srcdir/$_developer-$pkgname-$_code
2011-03-08 23:11:26 +08:00
2012-01-03 00:46:58 +08:00
# Some CMake changes.
sed -i -e "s#share/games#share#" -e "s#/games#/bin#" CMakeLists.txt
# Executable compilation.
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
2012-01-03 00:46:58 +08:00
-DCMAKE_BUILD_TYPE=Release \
-DBINDIR=bin \
-DDATADIR=share/$pkgname \
..
make
2011-03-08 23:11:26 +08:00
}
package() {
2012-01-03 00:46:58 +08:00
cd $srcdir/$_developer-$pkgname-$_code/build
make DESTDIR=$pkgdir install
# Move executable (only way for it to work).
# mv $pkgdir/usr/bin/$pkgname $pkgdir/usr/share/$pkgname/$pkgname
# Execution script.
# cat > $pkgdir/usr/bin/$pkgname << EOF
# #!/bin/sh
# cd /usr/share/$pkgname/
# ./$pkgname
# EOF
# chmod -R +x $pkgdir/usr/bin/$pkgname
# Documentation.
install -Dm644 $srcdir/$_developer-$pkgname-$_code/README $pkgdir/usr/share/doc/$pkgname/readme.txt
2011-03-08 23:11:26 +08:00
}