QA fixes
This commit is contained in:
1
app-mobilephone/flashlight/Manifest
Normal file
1
app-mobilephone/flashlight/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST flashlight-0.1.1.tar.gz 20077 BLAKE2B c9ed29d034c5c7e91a87209236e153afbada4c0e098dba0e0ed8fa0f7b321d3ec693fe198de415031024f4a29437ba2986809f30009c5c09751d7800449a42af SHA512 ed8350bf75f5638c36ba070dee7f5aa0455fcde5ed4ecc63ff7a27578d34e382e16b2998e25898e972b95b5307af58de14b96ee359bedfcee924f9b7e865dcd6
|
||||
5
app-mobilephone/flashlight/files/60-flashlight.rules
Normal file
5
app-mobilephone/flashlight/files/60-flashlight.rules
Normal file
@@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-3+
|
||||
#
|
||||
# This file is part of flashlight.
|
||||
|
||||
SUBSYSTEM=="leds", KERNEL=="white:flash", ACTION=="add", RUN+="/bin/chmod -R a+w /sys%p"
|
||||
2
app-mobilephone/flashlight/files/90-flashlight.rules
Normal file
2
app-mobilephone/flashlight/files/90-flashlight.rules
Normal file
@@ -0,0 +1,2 @@
|
||||
SUBSYSTEM=="leds", ACTION=="add", KERNEL=="white:flash", \
|
||||
RUN+="/bin/chmod 777 /sys/class/leds/%k/brightness"
|
||||
37
app-mobilephone/flashlight/flashlight-0.1.1-r2.ebuild
Normal file
37
app-mobilephone/flashlight/flashlight-0.1.1-r2.ebuild
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit meson gnome2-utils udev xdg-utils
|
||||
|
||||
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+"
|
||||
BDEPEND="dev-lang/python-exec[native-symlinks]"
|
||||
|
||||
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
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_schemas_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
5
app-mobilephone/flashlight/metadata.xml
Normal file
5
app-mobilephone/flashlight/metadata.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user