mirror of
https://github.com/archlinux/aur.git
synced 2026-02-10 06:54:23 +01:00
initial pkg
This commit is contained in:
commit
5a2cea780a
5 changed files with 72 additions and 0 deletions
26
.SRCINFO
Normal file
26
.SRCINFO
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
pkgbase = huntarr
|
||||
pkgdesc = an automatic missing content hunter for Sonarr, Radarr, Lidarr, Readarr, and Whisparr.
|
||||
pkgver = 7.4.11
|
||||
pkgrel = 1
|
||||
url = https://github.com/plexguide/Huntarr.io
|
||||
arch = x86_64
|
||||
license = GPL3
|
||||
depends = python
|
||||
depends = python-flask
|
||||
depends = python-requests
|
||||
depends = python-waitress
|
||||
depends = python-bcrypt
|
||||
depends = python-qrcode
|
||||
depends = python-pyotp
|
||||
depends = apprise
|
||||
backup = var/lib/huntarr/sleep.json
|
||||
source = https://github.com/plexguide/Huntarr.io/archive/refs/tags/7.4.11.tar.gz
|
||||
source = huntarr.service
|
||||
source = huntarr.sysusers
|
||||
source = huntarr.tmpfiles
|
||||
sha256sums = 01c9029c2c51a6ab5440b85385a9481263513f572438dbeaf81f1e2fafd0bc50
|
||||
sha256sums = 660e4f9dc6d38b06feeda7e7e8748191887a63a4a4087d6a23d36a4a4394bbd4
|
||||
sha256sums = 42a4c3451509f4ee82aa555f83f80fa638fbef162a33e937127a82723e2ab19e
|
||||
sha256sums = 57d8031a1a03293bc422cfd20cd8238219c4823557d17f5ad0874e633e864db5
|
||||
|
||||
pkgname = huntarr
|
||||
29
PKGBUILD
Normal file
29
PKGBUILD
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Maintainer: Matt Cuneo <m@cuneo.au>
|
||||
|
||||
pkgname=huntarr
|
||||
pkgver=7.4.11
|
||||
pkgrel=1
|
||||
_reponame=Huntarr.io
|
||||
pkgdesc="an automatic missing content hunter for Sonarr, Radarr, Lidarr, Readarr, and Whisparr."
|
||||
arch=('x86_64')
|
||||
url="https://github.com/plexguide/$_reponame"
|
||||
license=('GPL3')
|
||||
depends=('python' 'python-flask' 'python-requests' 'python-waitress' 'python-bcrypt' 'python-qrcode' 'python-pyotp' 'apprise')
|
||||
source=("${url}/archive/refs/tags/$pkgver.tar.gz" 'huntarr.service' 'huntarr.sysusers' 'huntarr.tmpfiles')
|
||||
sha256sums=('01c9029c2c51a6ab5440b85385a9481263513f572438dbeaf81f1e2fafd0bc50'
|
||||
'660e4f9dc6d38b06feeda7e7e8748191887a63a4a4087d6a23d36a4a4394bbd4'
|
||||
'42a4c3451509f4ee82aa555f83f80fa638fbef162a33e937127a82723e2ab19e'
|
||||
'57d8031a1a03293bc422cfd20cd8238219c4823557d17f5ad0874e633e864db5')
|
||||
backup=(var/lib/huntarr/sleep.json)
|
||||
prepare() {
|
||||
cd "$_reponame-$pkgver"
|
||||
sed -i "s|base_dir, 'frontend', 'static', 'data', 'sleep.json'|'/var','lib','huntarr','sleep.json'|" src/primary/cycle_tracker.py
|
||||
}
|
||||
package() {
|
||||
install -dm755 "$pkgdir/usr/share/webapps/huntarr"
|
||||
cp -r "$srcdir/$_reponame-$pkgver/"* "$pkgdir/usr/share/webapps/huntarr/"
|
||||
install -Dm755 "$srcdir/huntarr.service" "$pkgdir/usr/lib/systemd/system/huntarr.service"
|
||||
install -Dm644 "$srcdir/huntarr.sysusers" "$pkgdir/usr/lib/sysusers.d/huntarr.conf"
|
||||
install -Dm644 "$srcdir/huntarr.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/huntarr.conf"
|
||||
install -Dm755 "$srcdir/$_reponame-$pkgver/frontend/static/data/sleep.json" "$pkgdir/var/lib/huntarr/sleep.json"
|
||||
}
|
||||
13
huntarr.service
Normal file
13
huntarr.service
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=An automatic missing content hunter for Sonarr, Radarr, Lidarr, Readarr, and Whisparr
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/python /usr/share/webapps/huntarr/main.py
|
||||
WorkingDirectory=/var/lib/huntarr
|
||||
User=huntarr
|
||||
Group=huntarr
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
2
huntarr.sysusers
Normal file
2
huntarr.sysusers
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
u huntarr - - /var/lib/huntarr
|
||||
g huntarr -
|
||||
2
huntarr.tmpfiles
Normal file
2
huntarr.tmpfiles
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
d /var/lib/huntarr 0755 huntarr huntarr
|
||||
Z /var/lib/huntarr - huntarr huntarr
|
||||
Loading…
Add table
Reference in a new issue