forked from hasufell/hasufell-repository
games-util/solarus-quest-editor: bump to 1.5.3
This commit is contained in:
parent
9105464011
commit
64e241e53a
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user