2016-02-16 17:58:33 +00:00
|
|
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-04-22 15:42:34 +00:00
|
|
|
require github [ user=clintbellanger project=flare-game tag=v${PV} pn=flare-game ]
|
2016-05-26 12:57:52 +00:00
|
|
|
require cmake desktop-utils gtk-icon-cache
|
2016-02-16 17:58:33 +00:00
|
|
|
|
|
|
|
SUMMARY="Free/Libre Action Roleplaying game"
|
|
|
|
|
2016-02-17 01:53:28 +00:00
|
|
|
LICENCES="CCPL-Attribution-ShareAlike-3.0 GPL-2 GPL-3 OFL-1.1"
|
2016-02-16 17:58:33 +00:00
|
|
|
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_install() {
|
2016-02-17 01:53:28 +00:00
|
|
|
cmake_src_install
|
2016-02-16 17:58:33 +00:00
|
|
|
|
|
|
|
herebin ${PN}-game <<EOF
|
|
|
|
#!/bin/sh
|
|
|
|
exec flare --game=flare-game "\$@"
|
2016-02-16 18:03:30 +00:00
|
|
|
EOF
|
|
|
|
|
2016-05-26 12:57:52 +00:00
|
|
|
install_desktop_entry "Name=Flare (game)" "Exec=flare-game"
|
2016-02-16 17:58:33 +00:00
|
|
|
|
2016-02-17 01:53:28 +00:00
|
|
|
dodoc README
|
2016-02-16 17:58:33 +00:00
|
|
|
}
|
|
|
|
|