games-rpg/punch-club: retab

This commit is contained in:
Julian Ospald 2016-02-19 14:59:14 +01:00
parent 871e73226a
commit ab7d712812
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -32,12 +32,12 @@ DEPENDENCIES="
WORK="${WORKBASE}/data/noarch" WORK="${WORKBASE}/data/noarch"
pkg_nofetch() { pkg_nofetch() {
einfo einfo
einfo "Please buy & download \"${DOWNLOADS}\"" einfo "Please buy & download \"${DOWNLOADS}\""
einfo "from:" einfo "from:"
einfo " ${HOMEPAGE}" einfo " ${HOMEPAGE}"
einfo "and move/link it to \"${FETCHEDDIR}\"" einfo "and move/link it to \"${FETCHEDDIR}\""
einfo einfo
} }
pkg_setup() { pkg_setup() {
@ -46,17 +46,17 @@ pkg_setup() {
src_unpack() { src_unpack() {
# unzip # unzip
unzip -qo "${FETCHEDDIR}/${DOWNLOADS}" unzip -qo "${FETCHEDDIR}/${DOWNLOADS}"
[[ $? -le 1 ]] || die "unpacking ${DOWNLOADS} failed!" [[ $? -le 1 ]] || die "unpacking ${DOWNLOADS} failed!"
} }
src_install() { src_install() {
local dir=/opt/${PN} local dir=/opt/${PN}
local arch=$(option platform:amd64 "x86_64" "x86") local arch=$(option platform:amd64 "x86_64" "x86")
local noarch=$(option platform:amd64 "x86" "x86_64") local noarch=$(option platform:amd64 "x86" "x86_64")
insinto /usr/share/icons/hicolor/128x128/apps insinto /usr/share/icons/hicolor/128x128/apps
newins "game/Punch Club_Data/Resources/UnityPlayer.png" ${PN}.png newins "game/Punch Club_Data/Resources/UnityPlayer.png" ${PN}.png
herebin ${PN} <<EOF herebin ${PN} <<EOF
#!/bin/sh #!/bin/sh
@ -76,12 +76,12 @@ Icon=punch-club
Categories=Game;RolePlaying; Categories=Game;RolePlaying;
EOF EOF
edo rm "${WORK}/game/Punch Club_Data/Plugins/${arch}/libsteam_api.so" \ edo rm "${WORK}/game/Punch Club_Data/Plugins/${arch}/libsteam_api.so" \
"${WORK}/game/Punch Club_Data/Plugins/${arch}/libCSteamworks.so" "${WORK}/game/Punch Club_Data/Plugins/${arch}/libCSteamworks.so"
edo rm -r "${WORK}/game/Punch Club_Data/Plugins/${noarch}" edo rm -r "${WORK}/game/Punch Club_Data/Plugins/${noarch}"
edo rm "${WORK}/game/Punch Club.${noarch}" edo rm "${WORK}/game/Punch Club.${noarch}"
insinto "${dir}" insinto "${dir}"
doins -r "${WORK}/game" doins -r "${WORK}/game"
chmod +x "${IMAGE%/}${dir}/game/Punch Club.${arch}" chmod +x "${IMAGE%/}${dir}/game/Punch Club.${arch}"
} }