From 7bdbdab3cd127a211d49fdcdf3d1e0bc0f44193b Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 29 Feb 2016 00:54:10 +0100 Subject: [PATCH] games-arcade/opensonic: rm hacks By installing into /opt/${PN} --- .../opensonic/opensonic-0.1.4.exheres-0 | 26 +++++++------------ 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/packages/games-arcade/opensonic/opensonic-0.1.4.exheres-0 b/packages/games-arcade/opensonic/opensonic-0.1.4.exheres-0 index db76df1..3b535dd 100644 --- a/packages/games-arcade/opensonic/opensonic-0.1.4.exheres-0 +++ b/packages/games-arcade/opensonic/opensonic-0.1.4.exheres-0 @@ -35,28 +35,20 @@ DEFAULT_SRC_PREPARE_PATCHES=( ) CMAKE_SRC_CONFIGURE_PARAMS=( - -DGAME_INSTALL_DIR=/usr/share/${PN} + -DGAME_INSTALL_DIR=/opt/${PN} -DGAME_FINAL_DIR="/usr/$(exhost --target)/bin" - -DGAME_LIBDIR="/usr/$(exhost --target)/libexec/${PN}" + -DGAME_LIBDIR="/opt/${PN}" + -DCMAKE_INSTALL_PREFIX="/usr" ) +pkg_setup() { + exdirectory --allow /opt +} + src_install() { cmake_src_install - local i - for i in "${IMAGE}"/usr/share/${PN}/* ; do - dosym "${i#${IMAGE}}" \ - "/usr/$(exhost --target)/libexec/${PN}/${i#${IMAGE}/usr/share/${PN}/}" - done - insinto /usr/share/applications - hereins ${PN}.desktop << EOF -[Desktop Entry] -Type=Application -Name=OpenSonic -Exec=${PN} -Icon=${PN} -Comment=${SUMMARY} -Categories=Game;ArcadeGame; -EOF + # rm misplaced docs + edo rm "${IMAGE}"/usr/share/doc/${PNVR}/*.html }