forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
powder-117-r1.ebuild
39 lines (29 loc) · 919 Bytes
/
powder-117-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit flag-o-matic
MY_P=${P/-/}_src
DESCRIPTION="A game in the genre of Rogue, Nethack, and Diablo. Emphasis is on tactical play"
HOMEPAGE="http://www.zincland.com/powder/"
SRC_URI="http://www.zincland.com/powder/release/${MY_P}.tar.gz"
LICENSE="CC-Sampling-Plus-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="media-libs/libsdl[video]"
RDEPEND=${DEPEND}
S=${WORKDIR}/${MY_P}
PATCHES=( "${FILESDIR}"/${PN}-117-gcc6.patch )
src_compile() {
append-cxxflags -DCHANGE_WORK_DIRECTORY
emake -C port/linux premake
emake -C port/linux powder
}
src_install() {
dobin port/linux/${PN}
dodoc README.TXT CREDITS.TXT
}
pkg_postinst() {
elog "While the highscore is kept, save games are never preserved between"
elog "versions. Please wait until your current character dies before upgrading."
}