blob: 990a7648d9acc16f41e95cb70ed62b42ea397f50 (
plain)
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools desktop xdg
DESCRIPTION="Updated clone of Westood Studios' Dune II"
HOMEPAGE="https://dunelegacy.sourceforge.net"
COMMIT="6ea9ac96854daa8c75ba429e78dc6716b147e106"
SRC_URI="https://dev.gentoo.org/~chewi/distfiles/${P}.zip"
S="${WORKDIR}/${PN}-code-${COMMIT}"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~riscv ~x86"
RDEPEND="
media-libs/libsdl2[sound,threads(+),video]
media-libs/sdl2-mixer[midi]
media-libs/sdl2-ttf
"
DEPEND="${RDEPEND}"
BDEPEND="
app-arch/unzip
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${P}-flickering.patch
"${FILESDIR}"/${P}-text-manager.patch
"${FILESDIR}"/${P}-flags.patch
)
src_prepare() {
default
sed -i "s/0\.96\.4/${PV}/g" configure.ac || die
eautoreconf
}
src_install() {
default
doicon -s scalable ${PN}.svg
doicon -s 48 ${PN}.png
newicon -s 128 ${PN}-128x128.png ${PN}.png
make_desktop_entry ${PN} "Dune Legacy"
}
|