summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9cc6e4e981bf3a8045882c7d49a233dd0b509256 (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
# Maintainer: Adrien Gallou√ęt <adrien@gallouet.fr>
pkgname=glorytun
pkgver=0.3.4
pkgrel=3
pkgdesc="Multipath UDP tunnel"
arch=('x86_64')
url="https://github.com/angt/glorytun"
license=('BSD')
depends=('libsodium' 'iproute2')
makedepends=('git' 'libsodium' 'pkg-config')
source=("git+$url#tag=v$pkgver")
md5sums=('SKIP')

prepare() {
  cd "$srcdir/$pkgname"
  git submodule update --init --recursive
}

build() {
  cd "$srcdir/$pkgname"
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir/" install-strip
  install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}