commit:     a6aae66475f6a56ad3a3512bb28c63e94bfdd127
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Sat Apr 17 11:20:26 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sat Apr 17 11:20:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a6aae664

www-apps/jackett-bin: add a new live ebuild

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 www-apps/jackett-bin/jackett-bin-9999.ebuild | 45 ++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/www-apps/jackett-bin/jackett-bin-9999.ebuild 
b/www-apps/jackett-bin/jackett-bin-9999.ebuild
new file mode 100644
index 000000000..b3aa14a71
--- /dev/null
+++ b/www-apps/jackett-bin/jackett-bin-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# cvs inherit hack for making it live
+inherit cvs systemd unpacker
+
+DESCRIPTION="API Support for your favorite torrent trackers"
+HOMEPAGE="https://github.com/Jackett/Jackett";
+
+LICENSE="GPL-2"
+SLOT="0"
+RESTRICT="strip"
+
+RDEPEND="
+       acct-user/jackett
+       app-crypt/mit-krb5
+       dev-libs/icu
+       dev-util/lttng-ust
+"
+
+QA_PREBUILT="*"
+S="${WORKDIR}"/Jackett
+
+src_unpack() {
+       local 
PKG_BASE_URL="https://github.com/Jackett/Jackett/releases/latest/download/";
+       local PKG_NAME="Jackett.Binaries.LinuxSUBSTVAR.tar.gz"
+       local PKG_URL
+       use amd64 && PKG_NAME="${PKG_NAME/SUBSTVAR/AMDx64}"
+       use arm   && PKG_NAME="${PKG_NAME/SUBSTVAR/ARM32}"
+       use arm64 && PKG_NAME="${PKG_NAME/SUBSTVAR/ARM64}"
+       PKG_URL="${PKG_BASE_URL}${PKG_NAME}"
+       einfo "Fetching ${PKG_URL}"
+       wget "${PKG_URL}" || die
+       unpacker "${PKG_NAME}"
+}
+
+src_install() {
+       dodir /opt/jackett
+       cp -a "${S}"/. "${ED}"/opt/jackett || die
+       newinitd "${FILESDIR}"/jackett.initd jackett
+       systemd_dounit "${FILESDIR}"/jackett.service
+       doenvd "${FILESDIR}"/99jackett
+}

Reply via email to