Skip to content

Commit

Permalink
games-roguelike/zangband: fix DESTDIR
Browse files Browse the repository at this point in the history
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Apr 5, 2021
1 parent 104ca58 commit edd7701
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions games-roguelike/zangband/zangband-2.7.4c.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

EAPI=7

inherit autotools multilib
inherit autotools

DESCRIPTION="An enhanced version of the Roguelike game Angband"
HOMEPAGE="http://www.zangband.org/"
SRC_URI="ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/${P}.tar.gz"
S="${WORKDIR}"/${PN}

LICENSE="Moria"
SLOT="0"
Expand All @@ -20,16 +21,20 @@ RDEPEND="
dev-lang/tk:0=
)
x11-libs/libXaw"
DEPEND="${RDEPEND}
x11-base/xorg-proto"
DEPEND="
${RDEPEND}
x11-base/xorg-proto
"

S=${WORKDIR}/${PN}
DOCS=( readme z_faq.txt z_update.txt )

PATCHES=( "${FILESDIR}"/${P}-tk85.patch
PATCHES=(
"${FILESDIR}"/${P}-tk85.patch
"${FILESDIR}"/${P}-rng.patch
"${FILESDIR}"/${P}-tinfo.patch
"${FILESDIR}"/${P}-configure.patch
"${FILESDIR}"/${P}-makefile.patch )
"${FILESDIR}"/${P}-makefile.patch
)

src_prepare() {
default
Expand All @@ -49,14 +54,10 @@ src_configure() {
econf "${myconf[@]}"
}

DOCS=( readme
z_faq.txt
z_update.txt )

src_install() {
# Install the basic files but remove unneeded crap
emake DESTDIR="${D}/" installbase
rm "${D}"/{angdos.cfg,readme,z_faq.txt,z_update.txt}
emake DESTDIR="${D}/usr/" installbase
rm "${ED}"/usr/{angdos.cfg,readme,z_faq.txt,z_update.txt} || die

# Install everything else and fix the permissions
dobin zangband
Expand Down

0 comments on commit edd7701

Please sign in to comment.