Verified Commit d1bd5f9e authored by flussence's avatar flussence

Add games-fps/ut2004-bonuspack-cbp{1,2}

These ebuilds are EAPI 7 ready, and have IPFS mirror URLs.
Usage details were added to README.adoc.
parent 51171042
......@@ -51,6 +51,18 @@ Not the most user-friendly option, but it gets the job done.
`dev-vcs/src` — https://gitlab.com/esr/src[Simple Revision Control]::
A version control tool suitable for all those loose scripts you have lying around.
`games-fps/ut2004-bonuspack-*` — UT2004 map packs via IPFS::
+
--
The mirror URLs for these have proved chronically unreliable, so these ebuilds use IPFS.
You'll need to configure your local IPFS node as a distfiles mirror,
by adding a line like `ipfs http://localhost:8080` to `/etc/portage/mirrors`.
Help preserving these files (and more) would be appreciated.
The Manifest files contain additional SHA1 hashes (should be easily web searchable),
and the IPFS hashes were generated using 0.4.15 defaults: `--hash sha2-256 --chunker size-262144`.
--
`games-server/minecraft-server` — minecraft-server ebuilds::
+
--
......
DIST cbp1.zip 144163647 BLAKE2B ff32fbf431475ae2c24920574e5d158c4242fca2359bf1817131e189c0cd25e52d17de3232acb0b118d7f689ee67821cf6707a2e416e1a9b3f2b5f2e8fbcca86 SHA1 1881706fdd31a954c3df1bf63063042c78c09a7e SHA512 e2ead75796fd68b3f0d6ea50b4ed9988fef043730c6b81487d34c45aa26f63cac7b6a43991b673fbd6315f1496d2eecc52a5845c12f244411cd71fedab93c6fd
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="UT2004 Community Bonus Pack 1"
HOMEPAGE="https://liandri.beyondunreal.com/Unreal_Tournament_2004"
SRC_URI="mirror://ipfs/ipfs/QmX2WjFtWdhf87GR5g6UrkQhE8qKtVnhpeDkrW7Z3NpFDv -> cbp1.zip"
LICENSE="freedist"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="app-arch/unzip"
MY_DATADIR="/usr/share/games/ut2004"
S="${WORKDIR}"
src_install() {
local gamedirs=(Help Maps Music StaticMeshes Textures)
insinto ${MY_DATADIR}
for destdir in "${gamedirs[@]}"; do
doins -r ./"${destdir}"
ut2004_mod_link_files "${destdir}"
done
}
# Files need to be symlinked to game dirs for the game to find them
ut2004_mod_link_files() {
local destdir=$1
local linkdirs=(/opt/ut2004 /opt/ut2004-ded)
for srcfile in "${D}/${MY_DATADIR}/${destdir}"/*; do
for linkdest in "${linkdirs[@]}"; do
dosym "${srcfile}" "${linkdest}/${destdir}/${srcfile##*/}"
done
done
}
DIST cbp2-volume1_zip.zip 203766207 BLAKE2B 7f7d19f4a1a1caaf388eccecadb8123a103d4aafbb95f2b344e106b881507f9bac0ffdda48435be7c2303b8bd70545d3d74ca7971f97a989bfa955d3155d956c SHA1 719095f073de635638696f71dbd9597e6ba903a5 SHA512 9e425985640f9fcf9c1696d75e0794b31110715ba3bf664087ede1f1925a68e76e4ee87d248b245429702c2bffc1fb16362fcc43f795681efcc5880a2a7c3213
DIST cbp2-volume2_zip.zip 200444127 BLAKE2B 21d61d09af54e86047d46cc8d136cd6ba746098c4d0a53ade1e8e5c4143b543f0a90eb0dbca2cb00e29754f916dc84e7040a5d64f582bedd2a0107bb4c182291 SHA1 dc6a08b5f2022590c2b0f86cc01535e7a2b6ff9d SHA512 52982b302bb2d8f0839392f8bad05935bb8c5cae9e98528dfada7fa80f595050829ff6872b834197486c3401256f60c6c023133f6446299cbd72e1fd7ec3c8f4
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="UT2004 Community Bonus Pack 2"
HOMEPAGE="https://liandri.beyondunreal.com/Unreal_Tournament_2004"
SRC_URI="mirror://ipfs/ipfs/QmdphFqmxmA4AVbfYXkX41e9Ad2VDEvR1WgHy57F5cbP3X -> cbp2-volume1_zip.zip
mirror://ipfs/ipfs/QmV8H3Kf6LQDwfUB4EKfMAoW1bhmE6b3m3XNCcnpaMGGeD -> cbp2-volume2_zip.zip"
LICENSE="freedist"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="app-arch/unzip"
RDEPEND="games-fps/ut2004-bonuspack-cbp1
games-fps/ut2004-bonuspack-mega"
MY_DATADIR="/usr/share/games/ut2004"
S="${WORKDIR}"
src_prepare() {
# Provided by ut2004-bonuspack-cbp1
rm Music/Soeren.ogg
# Provided by ut2004-bonuspack-mega
rm Textures/Ty_RocketTextures.utx
cd Help
# Useless orphan file
rm Note.txt
mv GERROIDREADME.txt DOM-CBP2-Gerroid.txt
mv Readme.txt CBP2-Readme.txt
default
}
src_install() {
local gamedirs=(Animations Help Maps Music StaticMeshes System Textures)
insinto ${MY_DATADIR}
for destdir in "${gamedirs[@]}"; do
doins -r ./"${destdir}"
ut2004_mod_link_files "${destdir}"
done
}
# Files need to be symlinked to game dirs for the game to find them
ut2004_mod_link_files() {
local destdir=$1
local linkdirs=(/opt/ut2004 /opt/ut2004-ded)
for srcfile in "${D}/${MY_DATADIR}/${destdir}"/*; do
for linkdest in "${linkdirs[@]}"; do
dosym "${srcfile}" "${linkdest}/${destdir}/${srcfile##*/}"
done
done
}
# This is only here as a fallback. *Please* don't rely on this, as it'll be extremely slow and puts
# unnecessary stress on their server. Configure your own IPFS HTTP mirror in /etc/portage/mirrors.
ipfs https://gateway.ipfs.io/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment