summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2023-03-18 20:12:52 +0100
committerDaniel Pielmeier <billie@gentoo.org>2023-03-18 20:12:52 +0100
commitafe9848e95f088269ffae23af82983e61a8fe425 (patch)
treebb2d2671be0b4ab93f115762a66ec75a31a89185 /app-mobilephone/adebar/adebar-2.4.1.ebuild
parentdev-python/sphinxcontrib-jquery: Stabilize 4.1 amd64, #902073 (diff)
downloadgentoo-afe9848e95f088269ffae23af82983e61a8fe425.tar.gz
gentoo-afe9848e95f088269ffae23af82983e61a8fe425.tar.bz2
gentoo-afe9848e95f088269ffae23af82983e61a8fe425.zip
app-mobilephone/adebar: new package, add 2.4.1
Signed-off-by: Daniel Pielmeier <billie@gentoo.org>
Diffstat (limited to 'app-mobilephone/adebar/adebar-2.4.1.ebuild')
-rw-r--r--app-mobilephone/adebar/adebar-2.4.1.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/app-mobilephone/adebar/adebar-2.4.1.ebuild b/app-mobilephone/adebar/adebar-2.4.1.ebuild
new file mode 100644
index 000000000000..1577d71816f9
--- /dev/null
+++ b/app-mobilephone/adebar/adebar-2.4.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="Android DEvice Backup And Report, using Bash and ADB"
+HOMEPAGE="https://codeberg.org/izzy/Adebar"
+SRC_URI="https://codeberg.org/izzy/Adebar/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ app-shells/bash
+ dev-util/android-tools
+"
+
+S="${WORKDIR}/${PN}"
+
+DISABLE_AUTOFORMATTING="no"
+DOC_CONTENTS="Please refer to the documentation at https://codeberg.org/izzy/Adebar/wiki.
+You can find example configurations at ${ROOT}/usr/share/doc/${PF}.
+To customize, copy to \${XDG_CONFIG_HOME}/${PN} and edit it to your liking.
+Contrary to the documentation, the Gentoo installation does not allow
+configuration files relative to main program ${PN} installed to /usr/bin.
+So the documentation must be placed in the users home directory."
+
+src_prepare() {
+ default
+
+ sed -i -e 's|\(BINDIR=\).*|\1"/usr/share/adebar"|' ${PN}-cli
+ sed -i -e 's|\(LIBDIR=\).*|\1"/usr/lib/adebar"|' ${PN}-cli
+ sed -i -e '/-d "\$HOME\/\.config\/adebar"/,+2d' ${PN}-cli
+}
+
+src_install() {
+ local libdir=/usr/lib/${PN}
+ local sharedir=/usr/share/${PN}
+
+ newbin ${PN}-cli ${PN}
+
+ insinto ${libdir}
+ doins -r lib/*
+
+ exeinto ${sharedir}/tools
+ doexe tools/*
+ fperms 0644 ${sharedir}/tools/xml2array.php
+
+ insinto ${sharedir}/templates
+ doins -r templates/*
+
+ dodoc -r doc/*
+ dodoc README.md
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}