24 lines
651 B
Bash
24 lines
651 B
Bash
# 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
|
|
}
|