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.
67 lines
1.5 KiB
67 lines
1.5 KiB
1 year ago
|
# Copyright 1999-2023 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
|
|
||
|
inherit autotools desktop
|
||
13 years ago
|
|
||
|
DESCRIPTION="A clone of the classic game Galaga for the X Window System"
|
||
8 years ago
|
HOMEPAGE="https://sourceforge.net/projects/xgalaga"
|
||
13 years ago
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~alpha ~amd64 ~x86"
|
||
13 years ago
|
|
||
|
RDEPEND="x11-libs/libX11
|
||
|
x11-libs/libXmu
|
||
|
x11-libs/libXpm
|
||
|
x11-libs/libXext
|
||
|
x11-libs/libXt"
|
||
|
DEPEND="${RDEPEND}
|
||
6 years ago
|
x11-base/xorg-proto"
|
||
13 years ago
|
|
||
4 years ago
|
RDEPEND+=" acct-group/gamestat"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-2.1.1.0-respect-AR.patch
|
||
1 year ago
|
"${FILESDIR}"/${PN}-2.1.1.0-function-and-ints.patch
|
||
4 years ago
|
)
|
||
|
|
||
13 years ago
|
src_prepare() {
|
||
4 years ago
|
default
|
||
|
|
||
|
eautoreconf
|
||
|
|
||
13 years ago
|
sed -i \
|
||
|
-e "/LEVELDIR\|SOUNDDIR/ s:prefix:datadir/${PN}:" \
|
||
|
-e "/\/scores/ s:prefix:localstatedir/${PN}:" \
|
||
4 years ago
|
configure || die "sed configure failed"
|
||
|
|
||
13 years ago
|
sed -i \
|
||
|
-e "/SOUNDDEFS/ s:(SOUNDSRVDIR):(SOUNDSRVDIR)/bin:" \
|
||
|
-e 's:make ;:$(MAKE) ;:' \
|
||
4 years ago
|
Makefile.in || die "sed Makefile.in failed"
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
4 years ago
|
dobin xgalaga xgal.sndsrv.oss xgalaga-hyperspace
|
||
13 years ago
|
dodoc README README.SOUND CHANGES
|
||
|
newman xgalaga.6x xgalaga.6
|
||
|
|
||
4 years ago
|
insinto /usr/share/${PN}/sounds
|
||
10 years ago
|
doins sounds/*.raw
|
||
13 years ago
|
|
||
4 years ago
|
insinto /usr/share/${PN}/levels
|
||
10 years ago
|
doins levels/*.xgl
|
||
13 years ago
|
|
||
|
make_desktop_entry ${PN} XGalaga
|
||
|
|
||
4 years ago
|
dodir /var/games/${PN}
|
||
|
touch "${ED}"/var/games/${PN}/scores || die
|
||
|
|
||
|
fperms -R 660 /var/games/${PN}
|
||
3 years ago
|
fowners -R root:gamestat /var/games/${PN} /usr/bin/{xgalaga,xgal.sndsrv.oss,xgalaga-hyperspace}
|
||
4 years ago
|
fperms g+s /usr/bin/{xgalaga,xgal.sndsrv.oss,xgalaga-hyperspace}
|
||
13 years ago
|
}
|