summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de0e481886812310a9f4ba3025f8862e46988cf1 (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
#Maintainer: max-k <max-k AT post DOT com>
pkgname=openvpn-update-systemd-resolved
pkgver=1.3.0
pkgrel=4
pkgdesc="OpenVPN systemd-resolved Updater"
arch=("any")
url="https://github.com/jonathanio/update-systemd-resolved"
license=("GPL")
depends=("openvpn" "bash" "iproute2" "systemd>229")
source=("https://github.com/jonathanio/update-systemd-resolved/archive/v${pkgver}.tar.gz"
        'openvpn-update-systemd-resolved.install'
        'openvpn-update-systemd-resolved.rules')
install=$pkgname.install
sha256sums=('ee88c1862cb7d197adfcb0e088530993e092f7035fdd95693827d6526f2817af'
            '2a84e0d96fab9735454007053df4946aa7890cd63981087944d5b4d8906fdd07'
            'b8a4d95c950a0efd12a3270a5f14077710adeff1a82cad74df8bd254a00c1169')

package() {
  install -d -m750 "${pkgdir}/usr/share/polkit-1/rules.d"
  install -D -m644 openvpn-update-systemd-resolved.rules "${pkgdir}/usr/share/polkit-1/rules.d/00-openvpn-systemd-resolved.rules"

  cd "${srcdir}/update-systemd-resolved-${pkgver}"
  install -D -m755 update-systemd-resolved "${pkgdir}/usr/bin/update-systemd-resolved"
  install -D -m644 update-systemd-resolved.conf "${pkgdir}/usr/share/doc/openvpn/update-systemd-resolved.conf"
}

# vim:set ts=2 sw=2 et: