blob: a4791b5deaaeec891c8d8b0480babe0e79538cec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Donald Webster <fryfrog@gmail.com>
# Maintainer: Daniel Egeberg <daniel.egeberg@gmail.com>
pkgname="nzbhydra2"
pkgver=1.4.16
pkgrel=1
pkgdesc="Meta search for NZB indexers"
arch=('any')
url="https://github.com/theotherp/nzbhydra2"
license=('Apache')
depends=('python2' 'java-runtime-headless=8')
source=("https://github.com/theotherp/nzbhydra2/releases/download/v${pkgver}/${pkgname}-${pkgver}-linux.zip"
"https://raw.githubusercontent.com/theotherp/nzbhydra2/master/other/wrapper/nzbhydra2wrapper.py"
'nzbhydra2.service'
'nzbhydra2.tmpfiles'
'nzbhydra2.sysusers')
sha256sums=('da47c557411c70478f574cca099620768fc52922339389c00389a0213fa772ce'
'3f8b69fc1870ac219780379793b547ee4356c5a3b177ffe5cf96fc18d0cfb684'
'8c864fa865c92a6e0182f4dd3d4032ad85f09d021444cca217efafecbeff33c3'
'464bffa0e7bf99ccd7bbcdb787b25b53b7692f86f081a4fe347b92f88c56fb09'
'8f91eb4f98f7f5c11590b29b1394dfa7ca62ad115feeac4f402c9ac094fb925a')
package() {
install -d -m 755 "${pkgdir}/usr/lib/nzbhydra2"
cp -dpr --no-preserve=ownership "${srcdir}/lib" "${pkgdir}/usr/lib/nzbhydra2"
# Temporarily copy changelog.md to readme.md, which is used by the wrapper script to determine proper base directory location.
cp -dpr --no-preserve=ownership "${srcdir}/changelog.md" "${pkgdir}/usr/lib/nzbhydra2/readme.md"
install -D -m 755 "${srcdir}/nzbhydra2wrapper.py" "${pkgdir}/usr/lib/nzbhydra2"
install -D -m 755 "${srcdir}/nzbhydra2" "${pkgdir}/usr/lib/nzbhydra2"
install -D -m 644 "${srcdir}/nzbhydra2.service" "${pkgdir}/usr/lib/systemd/system/nzbhydra2.service"
install -D -m 644 "${srcdir}/nzbhydra2.sysusers" "${pkgdir}/usr/lib/sysusers.d/nzbhydra2.conf"
install -D -m 644 "${srcdir}/nzbhydra2.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/nzbhydra2.conf"
}
|