Compare commits

..

No commits in common. "main" and "jackett" have entirely different histories.

7 changed files with 103 additions and 3 deletions

25
.SRCINFO Normal file
View file

@ -0,0 +1,25 @@
pkgbase = jackett
pkgdesc = Use many torrent trackers with software that supports torznab/potato feeds.
pkgver = 0.20.1687
pkgrel = 1
url = https://github.com/Jackett/Jackett
arch = x86_64
arch = aarch64
arch = armv7h
license = GPL
makedepends = dotnet-sdk>=6.0.0
depends = curl
depends = openssl-1.0
optdepends = flaresolverr: A proxy server to bypass Cloudflare protection
options = !strip
options = staticlibs
source = jackett-0.20.1687.tar.gz::https://github.com/Jackett/Jackett/archive/v0.20.1687.tar.gz
source = jackett.service
source = jackett.sysusers
source = jackett.tmpfiles
sha256sums = d88e7688652f9eb4ecb2eacc8aa895055e87698bc56051494dcc7591ceee94fc
sha256sums = 9d8f9d73e5fa2b2877dde010c0d8ca6fbf47f03eb1f01b02f846026a949a0dcf
sha256sums = d005fcd009ec5404e1ec88246c31e664167f5551d6cabc35f68eb41750bfe590
sha256sums = 64022e15565a609f449090f02d53ee90ef95cffec52ae14f99e4e2132b6cffe1
pkgname = jackett

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*.xz
*.gz
*.log
/src/
/pkg/

51
PKGBUILD Normal file
View file

@ -0,0 +1,51 @@
# Maintainer: Donald Webster <fryfrog@gmail.com>
# Co-Maintainer: Joaquín Rufo Gutierrez <joaquinito2051@gmail.com>
pkgname=jackett
pkgver=0.20.1687
pkgrel=1
pkgdesc='Use many torrent trackers with software that supports torznab/potato feeds.'
arch=('x86_64' 'aarch64' 'armv7h')
license=('GPL')
url='https://github.com/Jackett/Jackett'
depends=('curl' 'openssl-1.0')
optdepends=(
'flaresolverr: A proxy server to bypass Cloudflare protection'
)
makedepends=('dotnet-sdk>=6.0.0')
options=('!strip' 'staticlibs')
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/Jackett/Jackett/archive/v${pkgver}.tar.gz"
'jackett.service'
'jackett.sysusers'
'jackett.tmpfiles'
)
sha256sums=('d88e7688652f9eb4ecb2eacc8aa895055e87698bc56051494dcc7591ceee94fc'
'9d8f9d73e5fa2b2877dde010c0d8ca6fbf47f03eb1f01b02f846026a949a0dcf'
'd005fcd009ec5404e1ec88246c31e664167f5551d6cabc35f68eb41750bfe590'
'64022e15565a609f449090f02d53ee90ef95cffec52ae14f99e4e2132b6cffe1')
build() {
cd ${pkgname^}-${pkgver}
case ${CARCH} in
x86_64) _CARCH='x64';;
aarch64) _CARCH='arm64';;
armv7h) _CARCH='arm';;
esac
export DOTNET_CLI_TELEMETRY_OPTOUT=1
dotnet publish src/Jackett.Server -f net6.0 --self-contained -r linux-${_CARCH} -c Debug -o buid/ /p:AssemblyVersion=${pkgver} /p:FileVersion=${pkgver} /p:InformationalVersion=${pkgver} /p:Version=${pkgver}
}
package() {
cd ${pkgname^}-${pkgver}
install -d -m 755 "${pkgdir}/usr/lib/jackett/"
cp -dpr --no-preserve=ownership buid/* "${pkgdir}/usr/lib/jackett/"
install -D -m 644 "${srcdir}/jackett.service" "${pkgdir}/usr/lib/systemd/system/jackett.service"
install -D -m 644 "${srcdir}/jackett.sysusers" "${pkgdir}/usr/lib/sysusers.d/jackett.conf"
install -D -m 644 "${srcdir}/jackett.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/jackett.conf"
}

View file

@ -1,3 +0,0 @@
# aur.git
This is a experimental mirror of the aur.git repository backing [the AUR](https://aur.archlinux.org).

16
jackett.service Normal file
View file

@ -0,0 +1,16 @@
[Unit]
Description=Jackett Service
After=network.target
[Service]
User=jackett
Group=jackett
Restart=always
RestartSec=5
Type=simple
Environment=XDG_CONFIG_HOME=/var/lib/jackett
ExecStart=/usr/lib/jackett/jackett --NoRestart --NoUpdates --DataFolder /var/lib/jackett
TimeoutStopSec=20
[Install]
WantedBy=multi-user.target

1
jackett.sysusers Normal file
View file

@ -0,0 +1 @@
u jackett - "Jackett daemon" /var/lib/jackett

5
jackett.tmpfiles Normal file
View file

@ -0,0 +1,5 @@
# Override this file with a modified version in /etc/tmpfiles.d/
d /var/lib/jackett 0755 jackett jackett
Z /var/lib/jackett - jackett jackett
Z /usr/lib/jackett - jackett jackett
L /var/log/jackett.log - - - - /var/lib/jackett/log.txt