blob: a30bdff889d08229f610af34a293bcb5241540e7 (
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
38
39
40
41
42
|
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Davide Depau <davide@depau.eu>
_pkgname=wireguard-go
pkgname=${_pkgname}-git
pkgver=0.0.20250522.r0.gf333402
pkgrel=3
pkgdesc="Go userspace implementation of WireGuard"
arch=('i686' 'pentium4' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://git.zx2c4.com/wireguard-go/"
license=('MIT')
depends=('glibc')
makedepends=('go' 'git')
conflicts=("${_pkgname}")
provides=("${_pkgname}" "wireguard")
source=("${_pkgname}::git+https://git.zx2c4.com/wireguard-go.git"
"0001-go-guidelines.patch")
sha1sums=('SKIP'
'e44d694a0db30f5873d4179ac8f80247a16f91b7')
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$_pkgname"
patch -Np2 -i "$srcdir"/0001-go-guidelines.patch
}
build() {
cd "$_pkgname"
make DESTDIR="$pkgdir"
}
package() {
cd "$_pkgname"
make DESTDIR="$pkgdir" PREFIX=/usr install
install -vDm644 LICENSE -t "${pkgdir}"/usr/share/licenses/$pkgname/
}
|