From 0d6b7834b7d660cb151229caf6c354693a8f5fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves=20Fern=C3=83=C3=A1ndez=20=28Gallaecio?= =?UTF-8?q?=29?= Date: Sat, 7 Mar 2015 09:19:29 +0000 Subject: [PATCH] flare 0.19 --- flare-engine/PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ flare/PKGBUILD | 21 +++++++++++---------- 2 files changed, 54 insertions(+), 10 deletions(-) create mode 100644 flare-engine/PKGBUILD diff --git a/flare-engine/PKGBUILD b/flare-engine/PKGBUILD new file mode 100644 index 000000000..14fd630ff --- /dev/null +++ b/flare-engine/PKGBUILD @@ -0,0 +1,43 @@ +# +# Games Packages for Chakra, part of chakra-project.org +# +# Maintainer: Adrián Chaves Fernández (Gallaecio) + +pkgname=flare-engine +_shared_name=flare +pkgver=0.19 +pkgrel=1 +pkgdesc="Engine for action roleplaying games from an isometric perspective" +arch=('i686' 'x86_64') +url="http://clintbellanger.net/rpg/" +license=('GPL3') +depends=('sdl' 'sdl_image' 'sdl_mixer' 'sdl_ttf') +makedepends=('cmake') +categories=('games') +source=(http://downloads.sourceforge.net/project/flare-game/Linux/$pkgname.$pkgver.tar.gz) +md5sums=('160325e67edf6ce83aeee3b1cd84598a') + +build() { + cd $srcdir/$pkgname.$pkgver + + # Some CMake changes. + sed -i -e "s#share/games#share#" -e "s#/games#/bin#" CMakeLists.txt + + # Executable compilation. + mkdir -p build && cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBINDIR=bin \ + -DDATADIR=share/${_shared_name} \ + .. + make +} + +package() { + cd $srcdir/$pkgname.$pkgver/build + make DESTDIR=$pkgdir install + + # Documentation. + install -Dm644 ../README.engine $pkgdir/usr/share/doc/$pkgname/readme.txt +} diff --git a/flare/PKGBUILD b/flare/PKGBUILD index 9e4227d91..7d6042056 100644 --- a/flare/PKGBUILD +++ b/flare/PKGBUILD @@ -5,41 +5,42 @@ pkgname=flare _pkgname=flare-game -pkgver=0.18 +_shared_name=${pkgname} +pkgver=0.19 pkgrel=1 pkgdesc="Action roleplaying game from an isometric perspective" arch=('i686' 'x86_64') url="http://clintbellanger.net/rpg/" -license=('GPL2' 'CCPL-by-sa') -depends=('sdl' 'sdl_image' 'sdl_mixer' 'sdl_ttf') +license=('CCPL-by-sa') +depends=('flare-engine') +makedepends=('cmake') replaces=('osare') categories=('games') changelog=ChangeLog -source=(http://downloads.sourceforge.net/project/flare-game/$pkgname-$pkgver.tar.gz) -md5sums=('4775a845694798f7df8b60b1303b8c37') +source=(http://downloads.sourceforge.net/project/flare-game/Linux/${_pkgname}.$pkgver.tar.gz) +md5sums=('0d2950b8f6facc640a019aecd3a1fdb8') build() { - cd $srcdir/$pkgname-$pkgver + cd $srcdir/${_pkgname}.$pkgver # Some CMake changes. sed -i -e "s#share/games#share#" -e "s#/games#/bin#" CMakeLists.txt # Executable compilation. - mkdir build && cd build + mkdir -p build && cd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DBINDIR=bin \ - -DDATADIR=share/$pkgname \ + -DDATADIR=share/${_shared_name} \ .. make } package() { - cd $srcdir/$pkgname-$pkgver/build + cd $srcdir/${_pkgname}.$pkgver/build make DESTDIR=$pkgdir install # Documentation. install -Dm644 ../README $pkgdir/usr/share/doc/$pkgname/readme.txt } -