diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-06-23 07:00:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-06-23 07:00:28 +0100 |
commit | e23cdda4dbb0c83b9e682ab5e916085a35203da5 (patch) | |
tree | 5a4ac448a3b288b731c24d947e0ce52df3cab07b /games-puzzle/triptych/triptych-1.16.ebuild | |
parent | 8187a741807f3e9a9e26304973cf18087dcf2560 (diff) |
gentoo resync : 23.06.2018
Diffstat (limited to 'games-puzzle/triptych/triptych-1.16.ebuild')
-rw-r--r-- | games-puzzle/triptych/triptych-1.16.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/games-puzzle/triptych/triptych-1.16.ebuild b/games-puzzle/triptych/triptych-1.16.ebuild new file mode 100644 index 000000000000..e2257e17ad3f --- /dev/null +++ b/games-puzzle/triptych/triptych-1.16.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop eutils user + +DESCRIPTION="Fast-paced Tetris-like puzzler" +HOMEPAGE="http://www.chroniclogic.com/triptych.htm" +SRC_URI="http://www.chroniclogic.com/demos/${PN}.tar.gz" +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="bindist mirror strip" + +RDEPEND=">=media-libs/libsdl-1.2[abi_x86_32,opengl,sound,video] + virtual/opengl[abi_x86_32] + x11-libs/libX11[abi_x86_32] + x11-libs/libXext[abi_x86_32]" + +QA_PREBUILT="opt/${PN}/${PN} + opt/${PN}/setup" + +S="${WORKDIR}/${PN}" + +DIR="/opt/${PN}" +WRITABLE=( "${EROOT}${DIR}"/{hwconfig.cfg,${PN}.{clr,cnt,scr}} ) + +pkg_setup() { + enewgroup gamestat 36 +} + +src_prepare() { + default + rm -v *.dll || die +} + +src_install() { + local EXES=( ${PN} setup ) + + insinto "${DIR}" + doins -r . + + exeinto "${DIR}" + doexe "${EXES[@]}" + + fowners root:gamestat "${EXES[@]/#/${DIR}/}" || die + fperms g+s "${EXES[@]/#/${DIR}/}" || die + + make_wrapper ${PN} ./${PN} "${DIR}" + make_wrapper ${PN}-setup ./setup "${DIR}" +} + +pkg_postinst() { + touch "${WRITABLE[@]}" || die + chown root:gamestat "${WRITABLE[@]}" || die + chmod 0664 "${WRITABLE[@]}" || die +} + +pkg_prerm() { + [[ -z ${REPLACED_BY_VERSION} ]] && + rm -v "${WRITABLE[@]}" +} |