blob: c1c9c9cd490ec8e9c17893da99224aea574477e4 (
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
50
51
52
53
54
|
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake desktop xdg-utils
MY_PN="Dwarf-Therapist"
MY_PV="v${PV}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="For managing dwarves in Dwarf Fortress"
HOMEPAGE="https://github.com/Dwarf-Therapist/Dwarf-Therapist"
SRC_URI="https://github.com/Dwarf-Therapist/${MY_PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/${MY_P}"
RDEPEND="
dev-qt/qtconcurrent:5
dev-qt/qtdeclarative:5
dev-qt/qtwidgets:5
"
src_install() {
# Install some sort of documentation
dodoc README.rst
# Add the desktop file
domenu dist/xdg/applications/dwarftherapist.desktop
# install icons
insinto /usr/share/
doins -r dist/xdg/icons
# install memory layout files for dwarf-fortress versions
insinto /usr/share/dwarftherapist/memory_layouts
doins -r share/memory_layouts/linux
# and of course, the binary
newbin "${BUILD_DIR}/dwarftherapist" dwarf-therapist
}
pkg_postinst() {
xdg_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}
|