forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OilWar-1.2.1-r2.ebuild
60 lines (47 loc) · 1.12 KB
/
OilWar-1.2.1-r2.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils gnome2-utils user
DESCRIPTION="Evil army is attacking your country and tries to steal your oil"
HOMEPAGE="http://linux.softpedia.com/get/GAMES-ENTERTAINMENT/RTS/OilWar-15354.shtml"
SRC_URI="mirror://gentoo/${P}.tar.gz
mirror://gentoo/${PN}.png"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="media-libs/libsdl[video]
media-libs/sdl-image[png]
media-libs/sdl-mixer"
RDEPEND="${DEPEND}"
pkg_setup(){
enewgroup gamestat 36
}
src_prepare() {
default
sed -i \
-e '/^CXXCOMPILE/s:$(CPPFLAGS):$(SDL_CFLAGS):' \
-e '/install-data-am:/s:\\::' \
-e '/install-data-local$/d' \
Makefile.in || die
}
src_configure() {
econf --enable-sound
}
src_install() {
default
doicon "${DISTDIR}"/${PN}.png
make_desktop_entry oilwar ${PN}
fowners root:gamestat /usr/bin/oilwar /var/games/oilwar.scores
fperms 664 /var/games/oilwar.scores
fperms 2755 /usr/bin/oilwar
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}