aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libtins/APKBUILD
blob: 166052db8137aae792290900188087a30430f48a (plain) (blame)
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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libtins
pkgver=4.3
pkgrel=1
pkgdesc="A high-level, multiplatform C++ network packet sniffing and crafting library"
url="http://libtins.github.io/"
arch="all"
license="BSD-2-Clause"
options="!check"
makedepends="libpcap-dev openssl-dev boost-dev cmake"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mfontanini/libtins/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	mkdir -p build
}

build() {
	cd build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
		-DLIBTINS_ENABLE_CXX11=yes \
		../
	make
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
	install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="29d606004fe9a440c9a53eede42fd5c6dbd049677d2cca2c5cfd26311ee2ca4c64ca3e665fbc81efd5bfab5577a5181ed0754c617e139317d9ae0cabba05aff7  libtins-4.3.tar.gz"