blob: 8140364eae0ec8da987043cf927fb7e3e859e03b (
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
|
# Maintainer: Marek Küthe <m.k@mk16.de>
_pkgname=libtuntap
pkgname=libtuntap-git
pkgver=0.4.r63.gc642154
pkgrel=2
pkgdesc="The portable Tun/Tap devices configuration utility"
arch=('x86_64')
url="https://github.com/LaKabane/libtuntap/"
license=('ISC')
makedepends=('git' 'cmake')
source=('git+https://github.com/LaKabane/libtuntap.git')
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/^libtuntap-//' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make -j "$(nproc)"
}
package() {
cd "$_pkgname/build"
make DESTDIR="$pkgdir/" install
}
|