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.
49 lines
895 B
49 lines
895 B
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
13 years ago
|
|
||
6 years ago
|
DESCRIPTION="Simple maze-like game where you navigate around and destroy arrows"
|
||
13 years ago
|
HOMEPAGE="http://noreason.ca/?file=software"
|
||
|
SRC_URI="http://noreason.ca/data/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
|
RDEPEND=">=x11-libs/gtk+-2.4:2"
|
||
|
DEPEND="${RDEPEND}
|
||
6 years ago
|
virtual/pkgconfig
|
||
|
"
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
|
||
13 years ago
|
# Modify path to data
|
||
|
sed -i \
|
||
6 years ago
|
-e "s:arrfl:/usr/share/${PN}/arrfl:" \
|
||
13 years ago
|
-e 's:nm\[9:nm[35:' \
|
||
|
-e 's:nm\[6:nm[30:' \
|
||
|
-e 's:nm\[7:nm[31:' \
|
||
|
game.c \
|
||
|
|| die 'sed failed'
|
||
|
sed -i \
|
||
|
-e '/^CC /d' \
|
||
|
-e '/CCLIBS/s:$: $(LDFLAGS):' \
|
||
|
Makefile \
|
||
|
|| die 'sed failed'
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
make clean || die "make clean failed"
|
||
9 years ago
|
emake CCOPTS="${CFLAGS}"
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
dobin arrows
|
||
|
insinto "/usr/share/${PN}"
|
||
9 years ago
|
doins arrfl*
|
||
6 years ago
|
einstalldocs
|
||
13 years ago
|
}
|