summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Springer2018-09-17 17:17:48 +0200
committerStephan Springer2018-09-17 17:17:48 +0200
commitd81c3fde7bf0113d716fe827f39b3ac8837c1816 (patch)
treee56e5e5b05ccc18b3e3af3bfc0961a405941fbd0
parent9c9cb4e60b429c869b439c665bcb617f41f77a50 (diff)
downloadaur-d81c3fde7bf0113d716fe827f39b3ac8837c1816.tar.gz
fix install permissions; use variables
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD19
2 files changed, 11 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d8e973619dc..2099fb02923 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = openvpn-update-resolv-conf-git
pkgdesc = OpenVPN Update resolvconf
pkgver = r42.43093c2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/masterkorp/openvpn-update-resolv-conf
arch = any
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index 3fdd56d5515..07580c47da0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,27 @@
# Maintainer: Stephan Springer <buzo+arch@Lini.de>
# Contributor: Matthew Treinish <mtreinish@kortar.org>
-pkgname=openvpn-update-resolv-conf-git
+_pkgname=openvpn-update-resolv-conf
+pkgname="$_pkgname"-git
pkgver=r42.43093c2
-pkgrel=1
+pkgrel=2
pkgdesc="OpenVPN Update resolvconf"
arch=('any')
-url="https://github.com/masterkorp/openvpn-update-resolv-conf"
+url="https://github.com/masterkorp/$_pkgname"
license=('GPL')
-provides=('openvpn-update-resolv-conf')
-conflicts=('openvpn-update-resolv-conf')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
makedepends=('git')
depends=('openvpn' 'openresolv')
-source=('git://github.com/masterkorp/openvpn-update-resolv-conf')
+source=("git://github.com/masterkorp/$_pkgname")
sha256sums=('SKIP')
pkgver() {
- cd openvpn-update-resolv-conf
+ cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
- cd openvpn-update-resolv-conf
- install -D -m655 update-resolv-conf.sh "$pkgdir/etc/openvpn/update-resolv-conf"
+ cd "$_pkgname"
+ install -D -m755 update-resolv-conf.sh "$pkgdir/etc/openvpn/update-resolv-conf"
}