summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 333f6c6a780f6ac7737fbcc32a634317238312a4 (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: Jan Holthuis <holthuis.jan@googlemail.com>

pkgname=nzbget-systemd
pkgver=0.1
pkgrel=2
pkgdesc="Systemd service and config for NZBGet"
url="https://github.com/Holzhaus/PKGBUILDs"
arch=('any')
depends=('nzbget')
license=('GPL')
source=('nzbget.conf'
        'nzbget.service')
install='nzbget.install'
sha256sums=('50bf12ffeda5bca2327ee4665de000892d18514a13e445d78ff5dec78bd48c4f'
            'c5dc750214105fe2ab4aff9545a48b7a5cfa246d00c771b1600ce4e6b74f70fb')
package() {
  cd "${srcdir}"

  install -d "${pkgdir}/usr/lib/systemd/system"
  install -m644 -t "${pkgdir}/usr/lib/systemd/system" nzbget.service

  install -d "${pkgdir}/var/lib/nzbget"
  install -d "${pkgdir}/etc"
  install -m664 -t "${pkgdir}/etc" "${srcdir}/nzbget.conf"

  install -d "${pkgdir}/var/lib/nzbget/downloads"
  install -d "${pkgdir}/var/lib/nzbget/downloads/dst"
  install -d "${pkgdir}/var/lib/nzbget/downloads/inter"
  install -d "${pkgdir}/var/lib/nzbget/downloads/nzb"
  install -d "${pkgdir}/var/lib/nzbget/downloads/queue"
  install -d "${pkgdir}/var/lib/nzbget/downloads/tmp"
  install -d "${pkgdir}/var/lib/nzbget/downloads/scripts"


}