summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3efb6235b0597bdd955b722bceee4962c597ba2e (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
# Maintainer: SilverBut <SilverBut@users.noreply.github.com>
# Contributor: Martin Weinelt <martin@darmstadt.freifunk.net>

# things can get a little crashy at times, so better have debug symbols handy
# OPTIONS+=(debug !strip)

pkgname=tinc-pre-git
pkgver=1.1pre18.217.g84b24109
pkgrel=3
pkgdesc="VPN (Virtual Private Network) daemon (Latest commit on the pre-release branch)"
arch=('any')
url="http://www.tinc-vpn.org/"
license=('GPL')
depends=('lzo' 'openssl')
makedepends=('git' 'meson>=0.51')
optdepends=('python2' 'wxpython: gui support' 'miniupnpc')
provides=('tinc-pre')
conflicts=('tinc' 'tinc-pre' 'tinc-pre-systemd')
source=('git+https://github.com/gsliepen/tinc#branch=1.1')
_gitname=tinc

pkgver() {
    cd "$_gitname"
    git describe --long | sed 's/-/./g' | cut -d. -f2-
}

build() {
    cd "$_gitname"
    meson setup build --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin
    meson compile -C build
}

package() {
    cd "$_gitname"
    meson install --destdir="$pkgdir" -C build
}

md5sums=('SKIP')