blob: a30a45a834df934f841ff905bc71326f36ceb260 (
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.r49.gf2ae185
pkgrel=1
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 ..
make -j "$(nproc)"
}
package() {
cd "$_pkgname/build"
make DESTDIR="$pkgdir/" install
}
|