summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47f957c76e26051a5ed98405f75c6dd2602dbe15 (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
# Maintainer: h8ray <gofindme at dmc dot chat>

pkgname=amneziawg-tools-git
_pkgname=amneziawg-tools
pkgver=r506.c0b400c
pkgrel=1
pkgdesc="AmneziaWG is a contemporary version of the popular VPN protocol, WireGuard"
arch=("x86_64")
url="https://github.com/amnezia-vpn/amneziawg-tools"
license=('GPL-2.0')
makedepends=('git')
optdepends=('amneziawg-go: go implementation of amneziawg'
            'resolvconf: if you are controlling DNS via AmneziaWG')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/amnezia-vpn/amneziawg-tools.git")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}/${_pkgname}/src"

    make
}

package() {
    cd "${srcdir}/${_pkgname}/src"

    make DESTDIR="${pkgdir}/" install
}