blob: 70afef0abac9993d67ea13d953cc60d3967557de (
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
|
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Davide Depau <davide@depau.eu>
_pkgname=wireguard-go
pkgname=${_pkgname}-git
pkgver=0.0.20220316.r9.gbb719d3
pkgrel=1
pkgdesc="Go userspace implementation of WireGuard"
arch=('i686' 'pentium4' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://git.zx2c4.com/wireguard-go/"
license=('GPL')
makedepends=('go')
conflicts=("${_pkgname}")
provides=("${_pkgname}" "wireguard")
source=("${_pkgname}::git+https://git.zx2c4.com/wireguard-go.git")
sha1sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir"
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" PREFIX=/usr install
}
|