summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f335d363a18ba47d5a45737bc7a479323e4fac5 (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
39
40
41
# Maintainer: Augugrumi <augugrumi@gmail.com>
pkgname=libviface-git # '-bzr', '-git', '-hg' or '-svn'
pkgver=v1.1.1
pkgrel=2
pkgdesc="Fork of the official libviface package. C++ bindings for Linux tun/tap and netdevice interface."
arch=('any')
url="https://github.com/Augugrumi/libviface"
license=('Apache License 2.0')
groups=( 'linux-tools')
depends=()
optdepends=('libtins: packets manipulation')
makedepends=(git cmake) # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-VCS}")
conflicts=("${pkgname%-VCS}")
replaces=()
backup=()
options=()
#install=
source=("${pkgname%-git}::git://github.com/Augugrumi/libviface.git")
noextract=()
md5sums=('SKIP')
srcdir=()

pkgver() {
	cd "$srcdir/${pkgname%-git}"
  printf "%s" "$(git describe --tags)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
  rm -Rf ./build/
  mkdir ./build/
  cd ./build/
  cmake -DCMAKE_INSTALL_PREFIX=/usr/ ..
  make
}

package() {
	cd "$srcdir/${pkgname%-git}/build/"
	make DESTDIR="$pkgdir/" install/strip
}