Files
guru/www-apps/jackett-bin/jackett-bin-9999.ebuild
Aisha Tammy 77ea1b2d79 www-apps/jackett-bin: add DEPEND
closes: https://bugs.gentoo.org/815745
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
2021-12-28 14:53:01 +00:00

47 lines
1.1 KiB
Bash

# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd unpacker
PROPERTIES+="live"
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
"
DEPEND="${RDEPEND}"
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-r1 jackett
systemd_dounit "${FILESDIR}"/jackett.service
doenvd "${FILESDIR}"/99jackett
}