aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2020-10-09 07:40:50 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2020-10-09 08:48:47 +0000
commitfa898feaf056c106865f0921e6303e1fc85e95fe (patch)
tree9213d476b51b7f781a84dffdc76c2eded7ad312c
parent9a29761f57132be041e445de11f2bc232045a2bc (diff)
downloadaports-fa898feaf056c106865f0921e6303e1fc85e95fe.tar.gz
aports-fa898feaf056c106865f0921e6303e1fc85e95fe.tar.bz2
aports-fa898feaf056c106865f0921e6303e1fc85e95fe.tar.xz
testing/libtins: new aport
-rw-r--r--testing/libtins/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/libtins/APKBUILD b/testing/libtins/APKBUILD
new file mode 100644
index 0000000000..90d4f5651a
--- /dev/null
+++ b/testing/libtins/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=libtins
+pkgver=4.3
+pkgrel=0
+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"