1 |
commit: afe9848e95f088269ffae23af82983e61a8fe425 |
2 |
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 18 19:12:52 2023 +0000 |
4 |
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 18 19:12:52 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afe9848e |
7 |
|
8 |
app-mobilephone/adebar: new package, add 2.4.1 |
9 |
|
10 |
Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org> |
11 |
|
12 |
app-mobilephone/adebar/Manifest | 1 + |
13 |
app-mobilephone/adebar/adebar-2.4.1.ebuild | 64 ++++++++++++++++++++++++++++++ |
14 |
app-mobilephone/adebar/metadata.xml | 8 ++++ |
15 |
3 files changed, 73 insertions(+) |
16 |
|
17 |
diff --git a/app-mobilephone/adebar/Manifest b/app-mobilephone/adebar/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000000..ce565359d4d5 |
20 |
--- /dev/null |
21 |
+++ b/app-mobilephone/adebar/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST adebar-2.4.1.tar.gz 64226 BLAKE2B 88387844779d9ec857b3f23ca397703fd021cfefbbcb0e5e9bfdea04270adf0cb062d0b34035a93248e7574be5a0dc664f839267e8af82b17967b256f9a57dfc SHA512 7fea787157d1a9bde18601a5199fb57ce108545ade80774ad1d70d64aa7263e9da91f9da1dfa15ff17e266ab0fb78bacab2a767b636013a64d5b2a63f20d74d7 |
24 |
|
25 |
diff --git a/app-mobilephone/adebar/adebar-2.4.1.ebuild b/app-mobilephone/adebar/adebar-2.4.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..1577d71816f9 |
28 |
--- /dev/null |
29 |
+++ b/app-mobilephone/adebar/adebar-2.4.1.ebuild |
30 |
@@ -0,0 +1,64 @@ |
31 |
+# Copyright 1999-2023 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+inherit readme.gentoo-r1 |
37 |
+ |
38 |
+DESCRIPTION="Android DEvice Backup And Report, using Bash and ADB" |
39 |
+HOMEPAGE="https://codeberg.org/izzy/Adebar" |
40 |
+SRC_URI="https://codeberg.org/izzy/Adebar/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64" |
45 |
+IUSE="" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ app-shells/bash |
49 |
+ dev-util/android-tools |
50 |
+" |
51 |
+ |
52 |
+S="${WORKDIR}/${PN}" |
53 |
+ |
54 |
+DISABLE_AUTOFORMATTING="no" |
55 |
+DOC_CONTENTS="Please refer to the documentation at https://codeberg.org/izzy/Adebar/wiki. |
56 |
+You can find example configurations at ${ROOT}/usr/share/doc/${PF}. |
57 |
+To customize, copy to \${XDG_CONFIG_HOME}/${PN} and edit it to your liking. |
58 |
+Contrary to the documentation, the Gentoo installation does not allow |
59 |
+configuration files relative to main program ${PN} installed to /usr/bin. |
60 |
+So the documentation must be placed in the users home directory." |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ |
65 |
+ sed -i -e 's|\(BINDIR=\).*|\1"/usr/share/adebar"|' ${PN}-cli |
66 |
+ sed -i -e 's|\(LIBDIR=\).*|\1"/usr/lib/adebar"|' ${PN}-cli |
67 |
+ sed -i -e '/-d "\$HOME\/\.config\/adebar"/,+2d' ${PN}-cli |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ local libdir=/usr/lib/${PN} |
72 |
+ local sharedir=/usr/share/${PN} |
73 |
+ |
74 |
+ newbin ${PN}-cli ${PN} |
75 |
+ |
76 |
+ insinto ${libdir} |
77 |
+ doins -r lib/* |
78 |
+ |
79 |
+ exeinto ${sharedir}/tools |
80 |
+ doexe tools/* |
81 |
+ fperms 0644 ${sharedir}/tools/xml2array.php |
82 |
+ |
83 |
+ insinto ${sharedir}/templates |
84 |
+ doins -r templates/* |
85 |
+ |
86 |
+ dodoc -r doc/* |
87 |
+ dodoc README.md |
88 |
+ |
89 |
+ readme.gentoo_create_doc |
90 |
+} |
91 |
+ |
92 |
+pkg_postinst() { |
93 |
+ readme.gentoo_print_elog |
94 |
+} |
95 |
|
96 |
diff --git a/app-mobilephone/adebar/metadata.xml b/app-mobilephone/adebar/metadata.xml |
97 |
new file mode 100644 |
98 |
index 000000000000..46861791de00 |
99 |
--- /dev/null |
100 |
+++ b/app-mobilephone/adebar/metadata.xml |
101 |
@@ -0,0 +1,8 @@ |
102 |
+<?xml version="1.0" encoding="UTF-8"?> |
103 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
104 |
+<pkgmetadata> |
105 |
+ <maintainer type="person"> |
106 |
+ <email>billie@g.o</email> |
107 |
+ <name>Daniel Pielmeier</name> |
108 |
+ </maintainer> |
109 |
+</pkgmetadata> |