blob: cbe9f0918d7a97d83a459615fce2f090ff7c2c64 (
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
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Andrew Sun <adsun701@gmail.com>
# Maintainer: Maxim Klimenko <ghosyintheshell@gmail.com>
_pkgname=autovpn
pkgname=${_pkgname}-git
pkgver=placeholder
pkgrel=1
pkgdesc='Easily connect to a VPN in a country of your choice.'
arch=('x86_64')
url="https://github.com/DevelopedLogic/autovpn.git"
license=('GPL')
depends=('openvpn')
makedepends=('go' 'go-pie')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=('git+https://github.com/DevelopedLogic/autovpn.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname}"
printf "%s" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${_pkgname}"
go mod init autovpn.go &> /dev/null
go mod tidy
go build -o ${_pkgname}
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm755 ${_pkgname} "$pkgdir/usr/bin/${_pkgname}"
install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}/" README.md
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
|