mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Update done using: ``` git grep -l sys-libs/zlib sys-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git grep -l virtual/zlib-ng sys-* | xargs sed -i -e s@virtual/zlib-ng@sys-libs/zlib-ng@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error ``` Plus reverts in sys-libs/minizip-ng, sys-libs/zlib-ng and profiles. Signed-off-by: Michał Górny <mgorny@gentoo.org>
70 lines
1.6 KiB
Bash
70 lines
1.6 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
CHECKREQS_DISK_BUILD="8600M"
|
|
inherit check-reqs desktop unpacker xdg
|
|
|
|
MY_PN="${PN%-gog}"
|
|
DESCRIPTION="Rock-themed action-adventure that marries visceral action combat with open-world"
|
|
HOMEPAGE="https://www.gog.com/game/brutal_legend"
|
|
SRC_URI="gog_brutal_legend_${PV}.sh"
|
|
|
|
LICENSE="GOG-EULA"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64 ~x86"
|
|
RESTRICT="bindist fetch splitdebug"
|
|
|
|
BDEPEND="
|
|
app-arch/unzip
|
|
media-libs/libpng
|
|
"
|
|
|
|
RDEPEND="
|
|
media-libs/glu[abi_x86_32]
|
|
media-libs/libsdl2[abi_x86_32,joystick,opengl,sound,video]
|
|
>=sys-devel/gcc-3.4[cxx]
|
|
>=sys-libs/glibc-2.7[stack-realign(-)]
|
|
virtual/zlib[abi_x86_32]
|
|
virtual/opengl[abi_x86_32]
|
|
!${CATEGORY}/${MY_PN}-hb
|
|
"
|
|
|
|
S="${WORKDIR}/data/noarch/game"
|
|
DIR="/opt/${MY_PN}"
|
|
QA_PREBUILT="${DIR#/}/*"
|
|
|
|
pkg_nofetch() {
|
|
einfo "Please buy and download ${SRC_URI} from:"
|
|
einfo " ${HOMEPAGE}"
|
|
einfo "and move it to your distfiles directory."
|
|
}
|
|
|
|
src_unpack() {
|
|
unpack_zip "${A}"
|
|
}
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# The distributed icon is broken so fix it. pngfix exits unsuccessfully when
|
|
# it fixes an image, so run it again to check the fixed image.
|
|
pngfix --out="${T}"/Buddha.png Buddha.png ||
|
|
pngfix "${T}"/Buddha.png || die
|
|
}
|
|
|
|
src_install() {
|
|
exeinto "${DIR}"
|
|
doexe Buddha.bin.x86
|
|
dosym ../..${DIR}/Buddha.bin.x86 /usr/bin/${MY_PN}
|
|
|
|
insinto "${DIR}"
|
|
doins -r "${T}"/Buddha.png DFCONFIG Data/ Linux/ OGL/ Win/
|
|
|
|
exeinto "${DIR}"/lib
|
|
doexe lib/libfmod*.so lib/libsteam_api.so
|
|
|
|
make_desktop_entry ${MY_PN} "Brütal Legend" "${EPREFIX}${DIR}"/Buddha.png
|
|
}
|