You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.6 KiB
73 lines
1.6 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
|
|
||
|
inherit desktop wrapper
|
||
10 years ago
|
|
||
|
DESCRIPTION="Arkanoid with Gnomes"
|
||
|
HOMEPAGE="http://www.jardinains2.com"
|
||
|
SRC_URI="mirror://gentoo/JN2_1_FREE_LIN.tar.gz"
|
||
|
|
||
|
LICENSE="jardinains"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="-* ~amd64 ~x86"
|
||
4 years ago
|
|
||
10 years ago
|
RESTRICT="strip"
|
||
4 years ago
|
QA_EXECSTACK="opt/jardinains/jardinains"
|
||
10 years ago
|
|
||
4 years ago
|
RDEPEND="
|
||
|
acct-group/gamestat
|
||
|
sys-libs/libstdc++-v3:5
|
||
9 years ago
|
>=virtual/opengl-7.0-r1[abi_x86_32(-)]
|
||
|
>=virtual/glu-9.0-r1[abi_x86_32(-)]
|
||
|
>=x11-libs/libX11-1.6.2[abi_x86_32(-)]
|
||
4 years ago
|
>=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
|
||
|
amd64? ( sys-libs/libstdc++-v3:5[multilib] )
|
||
|
"
|
||
|
|
||
|
dir=opt/${PN}
|
||
|
QA_PREBUILT="${dir}/${PN}"
|
||
10 years ago
|
|
||
4 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/strings-pt.patch
|
||
|
)
|
||
10 years ago
|
|
||
|
src_unpack() {
|
||
|
unpack JN2_1_FREE_LIN.tar.gz
|
||
9 years ago
|
cd "${WORKDIR}" || die
|
||
|
mv "Jardinains 2!" ${P} || die
|
||
10 years ago
|
}
|
||
|
|
||
|
src_prepare() {
|
||
4 years ago
|
default
|
||
|
|
||
10 years ago
|
# clean Mac fork files (bug #295782)
|
||
4 years ago
|
find . -type f -name "._*" -exec rm -f '{}' + || die
|
||
10 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
4 years ago
|
exeinto ${dir}
|
||
9 years ago
|
doexe jardinains
|
||
10 years ago
|
|
||
4 years ago
|
insinto ${dir}
|
||
|
doins -r LICENSE.txt data help
|
||
10 years ago
|
|
||
4 years ago
|
make_wrapper jardinains ./jardinains "${dir}" "${dir}"
|
||
10 years ago
|
make_desktop_entry jardinains "Jardinains 2"
|
||
4 years ago
|
touch "${ED}"/${dir}/data/prefs.xml || die
|
||
|
|
||
|
chmod g+rw "${ED}"/${dir}/data/prefs.xml || die
|
||
|
chmod -R g+rw "${ED}"/${dir}/data/players || die
|
||
|
|
||
|
fperms -R 660 /opt/${PN}/data
|
||
|
fowners -R root:gamestat /opt/${PN}/data
|
||
|
fperms g+s /opt/${PN}/${PN}
|
||
10 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "Due to the way this software is designed all user preferences for"
|
||
|
elog "graphics, audio and other in game data are shared among all users"
|
||
4 years ago
|
elog "of the computer."
|
||
10 years ago
|
}
|