blob: 7a8bb4decf86932da9e73eab8184ca0469955db3 (
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
42
43
44
45
|
# Maintainer: Vojtech Aschenbrenner <v@asch.cz>
pkgname=lsdn-git
pkgver=r438.14e8230
pkgrel=1
pkgdesc="Tool for software defined networking on top of TC"
arch=('any')
url="https://github.com/asch/lsdn"
license=('GPL2')
groups=()
depends=('tcl>=8.6.0' 'linux>=4.14' 'uthash' 'libmnl' 'json-c' 'libdaemon')
makedepends=('git' 'cmake' 'linux>=4.14')
optdepends=('libvirt')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
changelog=
source=('git+https://github.com/asch/lsdn')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
mkdir -p build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_LIBDIR='/usr/lib' \
-DCMAKE_SKIP_RPATH='TRUE'
make
}
package() {
cd "$srcdir/${pkgname%-git}/build"
make DESTDIR="$pkgdir/" install
}
|