aboutsummaryrefslogtreecommitdiff
blob: 5aa20e8e2a943c27ddd314612f53c0c324982a88 (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit qmake-utils xdg-utils desktop
DESCRIPTION="GUI application to generate an SDL2 mapping string from a generic controller"
HOMEPAGE="https://gitlab.com/ryochan7/sdl2-gamepad-mapper"
SRC_URI="https://gitlab.com/ryochan7/sdl2-gamepad-mapper/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
S="${WORKDIR}/${PN}-v${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
	dev-qt/qtquickcontrols:5
	dev-qt/qtquickcontrols2:5
	dev-qt/qtnetwork:5
"
DEPEND="${RDEPEND}"

src_configure() {
	eqmake5
}

src_install() {
	dobin "${PN}"
	domenu "${PN}.desktop"
	doicon -s 512 "${PN}.png"
}

pkg_postinst() {
	xdg_desktop_database_update
	xdg_icon_cache_update
}