1 |
commit: 08e92ea0dc25d5d00b07b57b550a725685bf1f91 |
2 |
Author: Marco Scardovi <marco <AT> scardovi <DOT> com> |
3 |
AuthorDate: Tue Jun 22 16:43:24 2021 +0000 |
4 |
Commit: Jian Lin <jlin.gentoo <AT> outlook <DOT> com> |
5 |
CommitDate: Tue Jun 22 16:43:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=08e92ea0 |
7 |
|
8 |
app-mobilephone/flashlight: add new package |
9 |
|
10 |
flashlight is the flashlight app for pinephone/librem 5 |
11 |
|
12 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
13 |
Signed-off-by: Marco Scardovi <marco <AT> scardovi.com> |
14 |
|
15 |
app-mobilephone/flashlight/Manifest | 1 + |
16 |
.../flashlight/files/60-flashlight.rules | 5 ++++ |
17 |
.../flashlight/files/90-flashlight.rules | 2 ++ |
18 |
.../flashlight/flashlight-0.1.1-r1.ebuild | 32 ++++++++++++++++++++++ |
19 |
app-mobilephone/flashlight/metadata.xml | 11 ++++++++ |
20 |
5 files changed, 51 insertions(+) |
21 |
|
22 |
diff --git a/app-mobilephone/flashlight/Manifest b/app-mobilephone/flashlight/Manifest |
23 |
new file mode 100644 |
24 |
index 000000000..8739b8f4f |
25 |
--- /dev/null |
26 |
+++ b/app-mobilephone/flashlight/Manifest |
27 |
@@ -0,0 +1 @@ |
28 |
+DIST flashlight-0.1.1.tar.gz 20077 BLAKE2B c9ed29d034c5c7e91a87209236e153afbada4c0e098dba0e0ed8fa0f7b321d3ec693fe198de415031024f4a29437ba2986809f30009c5c09751d7800449a42af SHA512 ed8350bf75f5638c36ba070dee7f5aa0455fcde5ed4ecc63ff7a27578d34e382e16b2998e25898e972b95b5307af58de14b96ee359bedfcee924f9b7e865dcd6 |
29 |
|
30 |
diff --git a/app-mobilephone/flashlight/files/60-flashlight.rules b/app-mobilephone/flashlight/files/60-flashlight.rules |
31 |
new file mode 100644 |
32 |
index 000000000..b9098a83c |
33 |
--- /dev/null |
34 |
+++ b/app-mobilephone/flashlight/files/60-flashlight.rules |
35 |
@@ -0,0 +1,5 @@ |
36 |
+# SPDX-License-Identifier: GPL-3+ |
37 |
+# |
38 |
+# This file is part of flashlight. |
39 |
+ |
40 |
+SUBSYSTEM=="leds", KERNEL=="white:flash", ACTION=="add", RUN+="/bin/chmod -R a+w /sys%p" |
41 |
|
42 |
diff --git a/app-mobilephone/flashlight/files/90-flashlight.rules b/app-mobilephone/flashlight/files/90-flashlight.rules |
43 |
new file mode 100644 |
44 |
index 000000000..3aafcd21a |
45 |
--- /dev/null |
46 |
+++ b/app-mobilephone/flashlight/files/90-flashlight.rules |
47 |
@@ -0,0 +1,2 @@ |
48 |
+SUBSYSTEM=="leds", ACTION=="add", KERNEL=="white:flash", \ |
49 |
+ RUN+="/bin/chmod 777 /sys/class/leds/%k/brightness" |
50 |
|
51 |
diff --git a/app-mobilephone/flashlight/flashlight-0.1.1-r1.ebuild b/app-mobilephone/flashlight/flashlight-0.1.1-r1.ebuild |
52 |
new file mode 100644 |
53 |
index 000000000..775fe6a04 |
54 |
--- /dev/null |
55 |
+++ b/app-mobilephone/flashlight/flashlight-0.1.1-r1.ebuild |
56 |
@@ -0,0 +1,32 @@ |
57 |
+# Copyright 1999-2021 Gentoo Authors |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+ |
60 |
+EAPI=7 |
61 |
+ |
62 |
+inherit meson gnome2-utils udev |
63 |
+ |
64 |
+MY_COMMIT="f5feb4b3d17bbf16171d716bbb8e28f3a84542ef" |
65 |
+ |
66 |
+DESCRIPTION="It's a flashlight, what do you expect?" |
67 |
+HOMEPAGE="https://gitlab.com/a-wai/flashlight.git" |
68 |
+SRC_URI="https://gitlab.com/a-wai/flashlight/-/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" |
69 |
+ |
70 |
+LICENSE="GPL-2" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64 ~arm64" |
73 |
+ |
74 |
+S="${WORKDIR}/${PN}-${MY_COMMIT}" |
75 |
+ |
76 |
+src_install() { |
77 |
+ meson_src_install |
78 |
+ udev_dorules "${FILESDIR}/60-flashlight.rules" |
79 |
+ mv "${D}/usr/share/appdata" "${D}/usr/share/metainfo" || die |
80 |
+} |
81 |
+ |
82 |
+pkg_postinst() { |
83 |
+ gnome2_schemas_update |
84 |
+} |
85 |
+ |
86 |
+pkg_postrm() { |
87 |
+ gnome2_schemas_update |
88 |
+} |
89 |
|
90 |
diff --git a/app-mobilephone/flashlight/metadata.xml b/app-mobilephone/flashlight/metadata.xml |
91 |
new file mode 100644 |
92 |
index 000000000..a0b29038e |
93 |
--- /dev/null |
94 |
+++ b/app-mobilephone/flashlight/metadata.xml |
95 |
@@ -0,0 +1,11 @@ |
96 |
+<?xml version='1.0' encoding='UTF-8'?> |
97 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
98 |
+<pkgmetadata> |
99 |
+ <maintainer type="person"> |
100 |
+ <email>marco@××××××××.com</email> |
101 |
+ <name>Marco Scardovi</name> |
102 |
+ </maintainer> |
103 |
+ <upstream> |
104 |
+ <remote-id type="github">atom/atom</remote-id> |
105 |
+ </upstream> |
106 |
+</pkgmetadata> |