diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-fps/quake1-data |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-fps/quake1-data')
-rw-r--r-- | games-fps/quake1-data/Manifest | 4 | ||||
-rw-r--r-- | games-fps/quake1-data/metadata.xml | 8 | ||||
-rw-r--r-- | games-fps/quake1-data/quake1-data-2.40.ebuild | 56 |
3 files changed, 68 insertions, 0 deletions
diff --git a/games-fps/quake1-data/Manifest b/games-fps/quake1-data/Manifest new file mode 100644 index 000000000000..e14a179b614a --- /dev/null +++ b/games-fps/quake1-data/Manifest @@ -0,0 +1,4 @@ +EBUILD quake1-data-2.40.ebuild 1558 SHA256 86f8911557682904ff3da69e53b7a08593cc97f4c6276b0d4b979f0d590bfa1f SHA512 0b60f932f0062c343647363277967e7acc0c7c81f67bc6ab8b281a19ab7230be04db4a33cd4afabed9c121a4c718dbb0becbe0e997c60f9b92de8f0c5548da66 WHIRLPOOL 31ea4238eb15b958cfd049462fd67cb85e1c2f0a42ee08f366671f2cc34e8a1617560fbd197ed78b409683b2907e85f7a8500106c125ce072d2c7b87bc1fc12d +MISC ChangeLog 2737 SHA256 4e897d49f8257836f3ca8a1bf5fc7c9e6d5cacabd47986d41f0f378c45a7f4c9 SHA512 97ff9010a30dc037c46f7f4d2a1c1620c512724fc258f347c6e200e359838f5a52bc2974c70e89ef2b95a47ff507536359b568ec5fe2c251fb70b41dc76a5857 WHIRLPOOL 5da6fb14afee3aa31f5ae645f05e013a07a563b1665bd5fb0b280c4df30859b012119ad19d69f917cccb9e53d8f943ecd5e89cf66bac762925f90ad3c0084e7a +MISC ChangeLog-2015 1946 SHA256 0cdcb47f1b235aa3fcaf99cfb73951230b56f3793beccaf712c661f792545445 SHA512 6ee4e4916cd9cac7ea92daaf34a0873f69861314a1d58063c4f6a12ddbc71dd3b218884d1ffe8ccd612c277b75545b3a601b1c1d8603939f63bfda5133fe439c WHIRLPOOL b8afe7c441f3f70cd43ac6b8e2a335d7f56f668ea1ccca09d2f5ce3d99f9cc65c877a5cba3fc2279e4ea97cb4e396b6d40947a252169e08e35a825fa325826c1 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-fps/quake1-data/metadata.xml b/games-fps/quake1-data/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-fps/quake1-data/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-fps/quake1-data/quake1-data-2.40.ebuild b/games-fps/quake1-data/quake1-data-2.40.ebuild new file mode 100644 index 000000000000..bb3a40e46345 --- /dev/null +++ b/games-fps/quake1-data/quake1-data-2.40.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# TODO: if installing off of the 1.01 cd, need to fetch the +# quake shareware and use that pak0 +# http://linux.omnipotent.net/article.php?article_id=11287 +# ftp://ftp.cdrom.com/pub/idgames/idstuff/quake/quake106.zip + +EAPI=5 +inherit eutils cdrom games + +DESCRIPTION="iD Software's Quake 1 ... the data files" +HOMEPAGE="http://www.idsoftware.com/games/quake/quake/" +SRC_URI="" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="app-arch/lha" +RDEPEND="!games-fps/quake1-demodata[symlink]" + +S=${WORKDIR} + +src_unpack() { + export CDROM_NAME_SET=("Existing Install" "Quake CD (1.01)" "Ultimate Quake Collection" "Quake CD (newer)") + cdrom_get_cds id1:q101_int.1:Setup/ID1:resource.1 + if [[ ${CDROM_SET} == "1" ]] ; then + echo ">>> Unpacking q101_int.lha to ${PWD}" + cat "${CDROM_ROOT}"/q101_int.1 "${CDROM_ROOT}"/q101_int.2 > \ + "${S}"/q101_int.exe + lha xqf "${S}"/q101_int.exe || die + rm -f q101_int.exe + elif [[ ${CDROM_SET} == "3" ]] ; then + echo ">>> Unpacking resource.1 to ${PWD}" + lha xqf "${CDROM_ROOT}"/resource.1 || die + fi +} + +src_install() { + insinto "${GAMES_DATADIR}"/quake1/id1 + case ${CDROM_SET} in + 0) doins "${CDROM_ROOT}"/id1/* + dodoc "${CDROM_ROOT}"/*.txt + ;; + 1|3)doins id1/* + dodoc *.txt + ;; + 2) newins "${CDROM_ROOT}"/Setup/ID1/PAK0.PAK pak0.pak + newins "${CDROM_ROOT}"/Setup/ID1/PAK1.PAK pak1.pak + dodoc "${CDROM_ROOT}"/Docs/* + ;; + esac + prepgamesdirs +} |