# Maintainer: Donald Webster # Maintainer: Daniel Egeberg pkgname="nzbhydra2" pkgver=3.3.0 pkgrel=1 pkgdesc="Search aggregator for newznab and torznab indexers." arch=('any') url="https://github.com/theotherp/nzbhydra2" license=('Apache') depends=('python' 'java-runtime-headless>=8') optdepends=('jackett: torrent indexer proxy') source=("https://github.com/theotherp/nzbhydra2/releases/download/v${pkgver}/${pkgname}-${pkgver}-linux.zip" 'nzbhydra2.service' 'nzbhydra2.tmpfiles' 'nzbhydra2.sysusers') sha256sums=('c801b59eb76828a1f06d322a56aea9316934b95de2d41664c00550073f0560ee' '0ae34e5c7e65779dcca28a16d61f5ddd0dbf1e706143353fcb8c643b8421da70' '464bffa0e7bf99ccd7bbcdb787b25b53b7692f86f081a4fe347b92f88c56fb09' '8f91eb4f98f7f5c11590b29b1394dfa7ca62ad115feeac4f402c9ac094fb925a') package() { install -d -m 755 "${pkgdir}/usr/lib/nzbhydra2" cp -dpr --no-preserve=ownership "${srcdir}/lib" "${srcdir}/readme.md" "${pkgdir}/usr/lib/nzbhydra2" install -D -m 755 "${srcdir}/nzbhydra2wrapperPy3.py" "${pkgdir}/usr/lib/nzbhydra2/nzbhydra2wrapperPy3.py" 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" }