diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 82 | ||||
-rwxr-xr-x | moddb-downloader.sh | 9 |
3 files changed, 85 insertions, 22 deletions
@@ -1,15 +1,19 @@ pkgbase = iortcw-venom-mod - pkgdesc = Venom Mod is a general improvement of original Rtcw game, with a new challenging and aggressive AI and some exploitation of features of id tech 3 engine, keeping the original gameplay - pkgver = 6.5.6 + pkgdesc = A general improvement of original RTCW game, with a new challenging and aggressive AI, keeping the original gameplay + pkgver = 6.8u pkgrel = 1 url = https://www.moddb.com/mods/rtcw-venom-mod arch = any license = CUSTOM makedepends = unzip + depends = iortcw depends = iortcw-data - noextract = iortcw-venom-mod-6.5.6.zip - source = iortcw-venom-mod-6.5.6.zip::https://www.moddb.com/downloads/mirror/173653/119/c90d40bdbeea743b5f31f401391f3ce4 - md5sums = 1eb9a668b79d3d3a675eb57af192e283 + noextract = iortcw-venom-mod-6.8u.zip + source = iortcw-venom-mod-6.8u.zip::moddb://www.moddb.com/downloads/start/173653/all + source = iortcw-venom-mod-ita-6.8u.zip::moddb://www.moddb.com/downloads/start/224261/all + source = moddb-downloader.sh + sha256sums = f353639595dbae36e506547015b18dffcf8e057928f83406afe51af846fcc08d + sha256sums = 877a4a19d80deda2e4a05022f1b63ba39c4d6a1c960757bd8a969595be5164ba + sha256sums = 6482482e637d38ce6eff6ab740f971f86b7e0d205797b2c5044aecfcf5701364 pkgname = iortcw-venom-mod - @@ -1,29 +1,79 @@ # Maintainer: robertfoster pkgname=iortcw-venom-mod -pkgver=6.5.6 +pkgver=6.8u pkgrel=1 -pkgdesc="Venom Mod is a general improvement of original Rtcw game, with a new challenging and aggressive AI and some exploitation of features of id tech 3 engine, keeping the original gameplay" +pkgdesc="A general improvement of original RTCW game, with a new challenging and aggressive AI, keeping the original gameplay" arch=(any) url="https://www.moddb.com/mods/rtcw-venom-mod" license=('CUSTOM') -depends=('iortcw-data') +depends=('iortcw' 'iortcw-data') makedepends=('unzip') -noextract=("$pkgname-$pkgver.zip") -source=("$pkgname-$pkgver.zip::https://www.moddb.com/downloads/mirror/173653/119/c90d40bdbeea743b5f31f401391f3ce4") +noextract=("${pkgname}-${pkgver}.zip") -prepare() { - # Unzipping with flattened paths - unzip -jo $pkgname-$pkgver.zip -d paks -} +_mainid=173653 +_itaid=224261 + +PKGEXT='.pkg.tar' +DLAGENTS+=("moddb::${BASH_SOURCE[0]%/*}/moddb-downloader.sh %u %o") + +source=("${pkgname}-${pkgver}.zip::moddb://www.moddb.com/downloads/start/${_mainid}/all" + "${pkgname}-ita-${pkgver}.zip::moddb://www.moddb.com/downloads/start/${_itaid}/all" + moddb-downloader.sh +) +_itapath="/opt/iortcw/italian" +_moditapath="/opt/iortcw/venom-mod-italian" +_modpath="/opt/iortcw/venom-mod" package() { - cd "$srcdir"/paks - find . -iname "*.pk3" -exec install -Dm644 {} "$pkgdir/opt/iortcw/Venom\ Mod/"{} \; - install -Dm644 autoexec.cfg "$pkgdir/opt/iortcw/Venom\ Mod/autoexec.cfg" - # RealRTCW compatibility - mkdir -p "$pkgdir/opt/realrtcw" - ln -sr /opt/iortcw/Venom\ Mod "$pkgdir/opt/realrtcw/Venom\ Mod" + # Vanilla with Italian localization + mkdir -p "${pkgdir}${_itapath}" + + # Venom Mod with Italian localization + mkdir -p "${pkgdir}${_moditapath}" + + # Venom Mod + mkdir -p "${pkgdir}${_modpath}" + + # Unzipping with flattened paths + unzip -jo "${pkgname}-${pkgver}.zip" -d "${pkgdir}${_modpath}" + unzip -jo "${pkgname}-ita-${pkgver}.zip" -d "${pkgdir}${_itapath}" + + # Make Venom Mod available in Italian + ln -s -r "${_modpath}/mp_vpak6.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_modpath}/mp_vpak7.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_modpath}/mp_vpak8.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_modpath}/sp_vpak5.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_modpath}/sp_vpak6.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_modpath}/sp_vpak7.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_modpath}/sp_vpak8.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_modpath}/z_pak1.pk3" \ + "${pkgdir}${_moditapath}" + + ln -s -r "${_itapath}/mp_pak1.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_itapath}/mp_pak3.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_itapath}/mp_pak5.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_itapath}/sp_pak1.pk3" \ + "${pkgdir}${_moditapath}" + ln -s -r "${_itapath}/sp_pak3.pk3" \ + "${pkgdir}${_moditapath}" + + # Clean unneeded files + find "${pkgdir}${_itapath}" -type f \ + ! -iname "*.pk3" \ + ! -iname "*.cfg" -exec rm {} \; } -md5sums=('1eb9a668b79d3d3a675eb57af192e283') +sha256sums=('f353639595dbae36e506547015b18dffcf8e057928f83406afe51af846fcc08d' + '877a4a19d80deda2e4a05022f1b63ba39c4d6a1c960757bd8a969595be5164ba' + '6482482e637d38ce6eff6ab740f971f86b7e0d205797b2c5044aecfcf5701364') diff --git a/moddb-downloader.sh b/moddb-downloader.sh new file mode 100755 index 000000000000..abb63e3c339c --- /dev/null +++ b/moddb-downloader.sh @@ -0,0 +1,9 @@ +# An script to download from ModDB + +url="${1}" +output="${2}" +resolved_url=$(curl --silent https://${url#moddb://} | grep -Po '(?<=href="/)[^"]*' | head -1) + +echo "Downloading ${output}" +curl -L -C - "https://www.moddb.com/${resolved_url}" -o \ + "${output}" |