aboutsummaryrefslogtreecommitdiff
blob: 80be96fe2b642d1a7c6fa8141b5554995e25c173 (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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit meson gnome2-utils udev

MY_COMMIT="f5feb4b3d17bbf16171d716bbb8e28f3a84542ef"

DESCRIPTION="It's a flashlight, what do you expect?"
HOMEPAGE="https://gitlab.com/a-wai/flashlight.git"
SRC_URI="https://gitlab.com/a-wai/flashlight/-/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

RDEPEND="x11-libs/gtk+"

S="${WORKDIR}/${PN}-${MY_COMMIT}"

src_install() {
	meson_src_install
	udev_dorules "${FILESDIR}/60-flashlight.rules"
	mv "${D}/usr/share/appdata" "${D}/usr/share/metainfo" || die
}

pkg_postinst() {
	gnome2_schemas_update
}

pkg_postrm() {
	gnome2_schemas_update
}