1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # Maintainer: txtsd <aur.archlinux@ihavea.quest>
- # Contributor: Joaquín Rufo Gutierrez <joaquinito2051@gmail.com>
- # Contributor: Donald Webster <fryfrog@gmail.com>
- pkgname=jackett
- pkgver=0.20.3642
- 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=('aspnet-runtime-6.0')
- optdepends=(
- 'flaresolverr: A proxy server to bypass Cloudflare protection'
- )
- makedepends=('dotnet-sdk-6.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=('4f5da140d969742f979f4d9dd16bb0ce21d1f475d644e498835e6ab39026f810'
- '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 --no-self-contained -r linux-${_CARCH} -c Release -o build/ /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 build/* "${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"
- }
|