Add nmcli-vpn-activator
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
pkgbase = nmcli-vpn-activator
|
||||||
|
pkgdesc = Uses nmcli monitor to detect network connections and enable or disable a VPN
|
||||||
|
pkgver = 0.2.0
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://git.ohea.xyz/restitux/nmcli-vpn-activator
|
||||||
|
arch = x86_64
|
||||||
|
license = GPLv3
|
||||||
|
makedepends = go
|
||||||
|
source = nmcli-vpn-activator-0.2.0.tar.gz::https://git.ohea.xyz/restitux/nmcli-vpn-activator/archive/v0.2.0.tar.gz
|
||||||
|
sha256sums = 5121e4f2aa8eaa744ca91e13bca2a583a72d6955ff1d3f08c368bca7f0fda975
|
||||||
|
|
||||||
|
pkgname = nmcli-vpn-activator
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
# Maintainer: restitux <restitux at ohea dot xyz>
|
||||||
|
|
||||||
|
pkgname=nmcli-vpn-activator
|
||||||
|
pkgver=0.2.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Uses nmcli monitor to detect network connections and enable or disable a VPN"
|
||||||
|
arch=('x86_64')
|
||||||
|
url='https://git.ohea.xyz/restitux/nmcli-vpn-activator'
|
||||||
|
license=('GPLv3')
|
||||||
|
makedepends=('go')
|
||||||
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||||||
|
sha256sums=('5121e4f2aa8eaa744ca91e13bca2a583a72d6955ff1d3f08c368bca7f0fda975')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$pkgname"
|
||||||
|
go build -o "$pkgname"
|
||||||
|
}
|
||||||
|
package() {
|
||||||
|
cd "$pkgname"
|
||||||
|
ls -lah
|
||||||
|
install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
|
||||||
|
install -Dm755 "$pkgname.service" -t "$pkgdir"/usr/lib/systemd/system
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user