summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 10 insertions, 9 deletions
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"
}