From 47895ce77342e8e52418d3ac7cdb980bfcab8ec3 Mon Sep 17 00:00:00 2001 From: John Zimmermann Date: Sun, 30 Sep 2018 15:39:27 +0200 Subject: [PATCH] usbtop: rebuild against boost-1.68.0 --- srcpkgs/usbtop/template | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/srcpkgs/usbtop/template b/srcpkgs/usbtop/template index a058a9f186..607b5bb2e7 100644 --- a/srcpkgs/usbtop/template +++ b/srcpkgs/usbtop/template @@ -1,7 +1,7 @@ # Template file for 'usbtop' pkgname=usbtop version=0.2 -revision=1 +revision=2 wrksrc="usbtop-release-${version}" build_style=cmake makedepends="boost-devel libpcap-devel" @@ -12,6 +12,15 @@ license="BSD-3-Clause" distfiles="https://github.com/aguinet/usbtop/archive/release-${version}.tar.gz" checksum=6283454ccbfecab44276344b6bc1bf74e86808fb9f539ca63eb0447d7741487e +LDFLAGS="-lpthread" + +pre_configure() { + case "$XBPS_TARGET_MACHINE" in + *-musl);; + *) sed -i -e 's/\${Boost_LIBRARIES}/${Boost_LIBRARIES} "-lpthread"/g' src/CMakeLists.txt;; + esac +} + do_install() { vbin build/src/usbtop vdoc README.md