hasufell-repository/packages/games-rpg/flare/flare-scm.exheres-0
Mykola Orliuk 58a591d92c flare: add scm versions of game and engine
Change-Id: Idb34ab09e57ea4d13e8e308df4513e36b2be43d4
Reviewed-on: https://galileo.mailstation.de/gerrit/10297
Reviewed-by: Julian Ospald <hasufell@posteo.de>
2017-10-15 18:59:00 +02:00

36 lines
751 B
Bash

# Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
require github [ user=clintbellanger project=flare-game pn=flare-game ]
require cmake desktop-utils gtk-icon-cache
SUMMARY="Free/Libre Action Roleplaying game"
LICENCES="CCPL-Attribution-ShareAlike-3.0 GPL-2 GPL-3 OFL-1.1"
SLOT="0"
PLATFORMS="~amd64 ~x86"
DEPENDENCIES="
run:
games-engines/flare[~${PV}]
"
CMAKE_SRC_CONFIGURE_PARAMS=(
-DBINDIR="/usr/$(exhost --target)/bin"
-DDATADIR=/usr/share/${PN}
)
src_install() {
cmake_src_install
herebin ${PN}-game <<EOF
#!/bin/sh
exec flare --game=flare-game "\$@"
EOF
install_desktop_entry "Name=Flare (game)" "Exec=flare-game"
dodoc README
}