games-strategy/openra: bump to 20151224

This commit is contained in:
Julian Ospald 2016-02-29 18:39:49 +01:00
parent 78017ccf67
commit 50e9067ab4

View File

@ -1,7 +1,7 @@
# Copyright 2015-2016 Julian Ospald <hasufell@posteo.de> # Copyright 2015-2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
require gtk-icon-cache freedesktop-desktop freedesktop-mime require desktop-utils gtk-icon-cache freedesktop-desktop freedesktop-mime
SUMMARY="A free RTS engine supporting games like Command & Conquer and Red Alert" SUMMARY="A free RTS engine supporting games like Command & Conquer and Red Alert"
HOMEPAGE="http://www.openra.net/" HOMEPAGE="http://www.openra.net/"
@ -14,16 +14,17 @@ NG_SRC="https://nuget.org/api/v2/package"
StyleCopPlus_MSBuild="${NG_SRC}/StyleCopPlus.MSBuild/4.7.49.5 -> StyleCopPlus_MSBuild-4.7.49.5.zip" StyleCopPlus_MSBuild="${NG_SRC}/StyleCopPlus.MSBuild/4.7.49.5 -> StyleCopPlus_MSBuild-4.7.49.5.zip"
StyleCop_MSBuild="${NG_SRC}/StyleCop.MSBuild/4.7.49.0 -> StyleCop_MSBuild-4.7.49.0.zip" StyleCop_MSBuild="${NG_SRC}/StyleCop.MSBuild/4.7.49.0 -> StyleCop_MSBuild-4.7.49.0.zip"
SharpZipLib="${NG_SRC}/SharpZipLib/0.86.0 -> SharpZipLib-0.86.0.zip" SharpZipLib="${NG_SRC}/SharpZipLib/0.86.0 -> SharpZipLib-0.86.0.zip"
MaxMind_Db="${NG_SRC}/MaxMind.Db/1.0.0.0 -> MaxMind_Db-1.0.0.0.zip" MaxMind_Db="${NG_SRC}/MaxMind.Db/1.1.0.0 -> MaxMind_Db-1.1.0.0.zip"
Newtonsoft_Json="${NG_SRC}/Newtonsoft.Json/6.0.5 -> Newtonsoft_Json-6.0.5.zip" Newtonsoft_Json="${NG_SRC}/Newtonsoft.Json/7.0.1 -> Newtonsoft_Json-7.0.1.zip"
RestSharp="${NG_SRC}/RestSharp/105.0.1 -> RestSharp-105.0.1.zip" RestSharp="${NG_SRC}/RestSharp/105.2.3 -> RestSharp-105.2.3.zip"
MaxMind_GeoIP2="${NG_SRC}/MaxMind.GeoIP2/2.1.0 -> MaxMind_GeoIP2-2.1.0.zip" MaxMind_GeoIP2="${NG_SRC}/MaxMind.GeoIP2/2.3.1 -> MaxMind_GeoIP2-2.3.1.zip"
SharpFont="${NG_SRC}/SharpFont/3.0.1 -> SharpFont-3.0.1.zip" SharpFont="${NG_SRC}/SharpFont/3.0.1 -> SharpFont-3.0.1.zip"
NUnit="${NG_SRC}/NUnit/2.6.4 -> NUnit-2.6.4.zip" NUnit="${NG_SRC}/NUnit/2.6.4 -> NUnit-2.6.4.zip"
Mono_Nat="${NG_SRC}/Mono.Nat/1.2.21 -> Mono_Nat-1.2.21.zip" Mono_Nat="${NG_SRC}/Mono.Nat/1.2.21 -> Mono_Nat-1.2.21.zip"
FuzzyLogicLibrary="${NG_SRC}/FuzzyLogicLibrary/1.2.0 -> FuzzyLogicLibrary-1.2.0.zip" FuzzyLogicLibrary="${NG_SRC}/FuzzyLogicLibrary/1.2.0 -> FuzzyLogicLibrary-1.2.0.zip"
SDL2CS="https://github.com/OpenRA/SDL2-CS/releases/download/20150709/SDL2-CS.dll -> SDL2-CS.dll.20150709" SDL2CS="https://github.com/OpenRA/SDL2-CS/releases/download/20150709/SDL2-CS.dll -> SDL2-CS.dll.20150709"
Eluant="https://github.com/OpenRA/Eluant/releases/download/20140425/Eluant.dll -> Eluant.dll.20140425" Eluant="https://github.com/OpenRA/Eluant/releases/download/20140425/Eluant.dll -> Eluant.dll.20140425"
SmartIrc4net="${NG_SRC}/SmartIrc4net/0.4.5.1 -> SmartIrc4net-0.4.5.1.zip"
# unfortunately, this may randomly change # unfortunately, this may randomly change
GEO_IP_DB="http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz -> GeoLite2-Country-2015-10-18.mmdb.gz" GEO_IP_DB="http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz -> GeoLite2-Country-2015-10-18.mmdb.gz"
@ -41,6 +42,7 @@ ${Mono_Nat}
${FuzzyLogicLibrary} ${FuzzyLogicLibrary}
${SDL2CS} ${SDL2CS}
${Eluant} ${Eluant}
${SmartIrc4net}
${GEO_IP_DB} ${GEO_IP_DB}
" "
@ -117,22 +119,6 @@ src_compile() {
emake VERSION="${PV}" core tools emake VERSION="${PV}" core tools
} }
install_desktop_entry() {
local cmd=$1
local name=$2
insinto /usr/share/applications
hereins "${name// /-}.desktop" <<EOF
[Desktop Entry]
Name=${name}
Type=Application
Comment=A free RTS engine supporting games like Command & Conquer and Red Alert
Exec=${cmd}
TryExec=openra
Icon=openra
Categories=Game;StrategyGame;
EOF
}
src_install() { src_install() {
emake \ emake \
datadir="/usr/share" \ datadir="/usr/share" \
@ -146,10 +132,10 @@ src_install() {
doexe Eluant.dll.config doexe Eluant.dll.config
# desktop entries # desktop entries
install_desktop_entry "${PN} Game.Mods=cnc" "OpenRA CNC" ${PN} install_desktop_entry "Exec=${PN} Game.Mod=cnc" "Name=OpenRA CNC"
install_desktop_entry "${PN} Game.Mods=ra" "OpenRA RA" ${PN} install_desktop_entry "Exec=${PN} Game.Mod=ra" "Name=OpenRA RA"
install_desktop_entry "${PN} Game.Mods=d2k" "OpenRA Dune2k" ${PN} install_desktop_entry "Exec=${PN} Game.Mod=d2k" "Name=OpenRA Dune2k"
install_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN} install_desktop_entry "Exec=${PN}-editor" "Name=OpenRA Map Editor"
} }
pkg_postinst() { pkg_postinst() {