games-util/solarus-quest-editor: bump to 1.5.3

This commit is contained in:
Julian Ospald 2017-05-18 18:08:44 +02:00
parent 9105464011
commit 64e241e53a
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 9 additions and 11 deletions

View File

@ -34,9 +34,11 @@ DEPENDENCIES="
BUGS_TO="hasufell@posteo.de" BUGS_TO="hasufell@posteo.de"
CMAKE_SRC_CONFIGURE_PARAMS=( CMAKE_SRC_CONFIGURE_PARAMS=(
-DSOLARUS_USE_LUAJIT=OFF -DCMAKE_INSTALL_PREFIX="/usr"
-DSOLARUS_INCLUDE_DIR="/usr/$(exhost --target)/include/solarus" -DSOLARUS_INCLUDE_DIR="/usr/$(exhost --target)/include/solarus"
-DSOLARUS_INSTALL_BINDIR="/usr/$(exhost --target)/bin"
-DSOLARUS_LIBRARY="/usr/$(exhost --target)/lib/libsolarus.so" -DSOLARUS_LIBRARY="/usr/$(exhost --target)/lib/libsolarus.so"
-DSOLARUS_USE_LUAJIT=OFF
) )
src_prepare() { src_prepare() {
@ -46,15 +48,11 @@ src_prepare() {
-e "s#^Exec=.*#Exec=${PN}#" \ -e "s#^Exec=.*#Exec=${PN}#" \
-e "s#^Icon=.*#Icon=${PN}#" \ -e "s#^Icon=.*#Icon=${PN}#" \
"${CMAKE_SOURCE}"/resources/solarus-quest-editor.desktop "${CMAKE_SOURCE}"/resources/solarus-quest-editor.desktop
}
# code doesn't expect share and bin to have different prefixes, although
src_install() { # cmake allows it
dobin solarus-quest-editor edo sed -i \
-e '/bool running_installed_executable = /s#executable_path == .*$#executable_path == "/usr/'$(exhost --target)'/bin");#' \
insinto /usr/share/applications "${CMAKE_SOURCE}"/src/file_tools.cpp
doins "${CMAKE_SOURCE}"/resources/solarus-quest-editor.desktop
insinto /usr/share/icons/hicolor/128x128/apps
newins "${CMAKE_SOURCE}"/images/icon/sqe-icon-png-128px.png ${PN}.png
} }