games-rpg/flare: initial import of version 0.19

This commit is contained in:
hasufell 2016-02-16 18:58:33 +01:00
parent d6d7d3c84e
commit b9563f4a65
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,42 @@
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
require cmake gtk-icon-cache
SUMMARY="Free/Libre Action Roleplaying game"
HOMEPAGE="https://github.com/clintbellanger/flare-game"
DOWNLOADS="https://github.com/clintbellanger/flare-game/archive/v${PV}.tar.gz -> ${PNV}-game.tar.gz"
LICENCES="CC-BY-SA-3.0 GPL-2 GPL-3 OFL-1.1"
SLOT="0"
PLATFORMS="~amd64 ~x86"
DEPENDENCIES="
run:
games-engines/flare[~${PV}]
"
WORK=${WORKBASE}/${PN}-game-${PV}
CMAKE_SRC_CONFIGURE_PARAMS=(
-DBINDIR="/usr/$(exhost --target)/bin"
-DDATADIR=/usr/share/${PN}
)
src_prepare() {
edo sed -i \
-e "/Exec/s#@FLARE_EXECUTABLE_PATH@#flare#" \
distribution/flare.desktop.in
}
src_install() {
cmake_src_install
herebin ${PN}-game <<EOF
#!/bin/sh
exec flare --game=flare-game "\$@"
EOF
dodoc README
}