summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e84509ecec0563e9758bbef2f951c5df3d4849ed (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
36
# Maintainer: Donald Webster <fryfrog@gmail.com>
# Maintainer: Daniel Egeberg <daniel.egeberg@gmail.com>
pkgname="nzbhydra2"
pkgver=1.0.5
pkgrel=1
pkgdesc="Meta search for NZB indexers"
arch=('any')
url="https://github.com/theotherp/nzbhydra2"
license=('Apache')
depends=('java-runtime-headless>=8')
conflicts=('nzbhydra2-git')
install='nzbhydra2.install'
#https://github.com/theotherp/nzbhydra2/releases/download/v1.0.3/nzbhydra2-1.0.3-linux.zip
source=("https://github.com/theotherp/nzbhydra2/releases/download/v${pkgver}/${pkgname}-${pkgver}-linux.zip"
        'nzbhydra2.service'
        'nzbhydra2.install'
        'nzbhydra2.sysusers')

sha256sums=('86ef03135da4e7017c5d7d3da415468077542f7534db7ab3eaa5e0c6c552af65'
            'ef4dc48daf7c061f0344faaba9450e72b95dfad4b0df669a04194a462149cdc1'
            '355dafa76d39c42f0a449080b2fe3673536e409da3f3b6c89f03c09dd303438c'
            '8f91eb4f98f7f5c11590b29b1394dfa7ca62ad115feeac4f402c9ac094fb925a')

package() {
    install -d -m 755 "${pkgdir}/usr/lib/nzbhydra2"

    cd "${srcdir}"
    chmod +x nzbhydra2 downloaderScripts/*.py 
    cp -dpr --no-preserve=ownership downloaderScripts nzbhydra2 readme.md "${pkgdir}/usr/lib/nzbhydra2"

    install -d -m 755 "${pkgdir}/var/lib/nzbhydra2"
    cp -dpr --no-preserve=ownership lib "${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"
}