diff --git a/.SRCINFO b/.SRCINFO index 269e0c2..874046c 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -16,10 +16,12 @@ pkgbase = dsview source = udev.rules source = dsview.desktop source = 0001-workaround-configure-failure-due-to-boost-cmake.patch + source = 0002-cmake-python-link.patch sha384sums = b8bf646f8c599cb8adfa2ab1363f36592a1ecb10b819617cecc970ac7a30b8d5ef912e9af5c1d55a9282478d8a55b80e sha384sums = cb8d28e4f0e20d81bccb7f81d3c2df9df13e13a45556bce9cbf0303f12d23564271bcc6afacf6a2801114dec50000729 sha384sums = 832521f6e13705d7abc99a94ab2a6cb8e1d8087444cdc283b9adc9ec2011da9a16242994af2ba6f339c7e455ba5df4ad sha384sums = 338763e008464bebb1f11e62d3a4839d7af43c800f772be6d51a345f6e1e83fa4d5929c1e4b363dd9af2073dda420821 + sha384sums = b3c355692709a1d9f4a1712f963ab87b1437e8d40fe0bb43dbc433f29ff9b06cc630bff357d33e5da6a351bee9dbd98f pkgname = dsview diff --git a/0002-cmake-python-link.patch b/0002-cmake-python-link.patch new file mode 100644 index 0000000..e55e2bf --- /dev/null +++ b/0002-cmake-python-link.patch @@ -0,0 +1,29 @@ +From d5ad3518afd82c68af9a1e8364668c41c40341d1 Mon Sep 17 00:00:00 2001 +From: Abdelhak Bougouffa +Date: Tue, 19 Nov 2019 15:14:15 +0100 +Subject: [PATCH] Add PythonLibs to link libraries in CMake, Fix #258 + +--- + DSView/CMakeLists.txt | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/DSView/CMakeLists.txt b/DSView/CMakeLists.txt +index 1a844a4..16ef406 100755 +--- a/DSView/CMakeLists.txt ++++ b/DSView/CMakeLists.txt +@@ -92,6 +92,7 @@ endif() + + find_package(Threads) + ++find_package(PythonLibs 3 EXACT) + find_package(Boost 1.42 COMPONENTS filesystem system thread REQUIRED) + find_package(libusb-1.0 REQUIRED) + find_package(libzip REQUIRED) +@@ -390,6 +391,7 @@ else() + list(APPEND DSVIEW_LINK_LIBS ${PKGDEPS_LIBRARIES}) + endif() + ++list(APPEND DSVIEW_LINK_LIBS ${PYTHON_LIBRARIES}) + + add_executable(${PROJECT_NAME} + ${DSView_SOURCES} diff --git a/PKGBUILD b/PKGBUILD index 0bd2aca..48b947f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -17,11 +17,13 @@ source=( 'udev.rules' 'dsview.desktop' '0001-workaround-configure-failure-due-to-boost-cmake.patch' + '0002-cmake-python-link.patch' ) sha384sums=('b8bf646f8c599cb8adfa2ab1363f36592a1ecb10b819617cecc970ac7a30b8d5ef912e9af5c1d55a9282478d8a55b80e' 'cb8d28e4f0e20d81bccb7f81d3c2df9df13e13a45556bce9cbf0303f12d23564271bcc6afacf6a2801114dec50000729' '832521f6e13705d7abc99a94ab2a6cb8e1d8087444cdc283b9adc9ec2011da9a16242994af2ba6f339c7e455ba5df4ad' - '338763e008464bebb1f11e62d3a4839d7af43c800f772be6d51a345f6e1e83fa4d5929c1e4b363dd9af2073dda420821') + '338763e008464bebb1f11e62d3a4839d7af43c800f772be6d51a345f6e1e83fa4d5929c1e4b363dd9af2073dda420821' + 'b3c355692709a1d9f4a1712f963ab87b1437e8d40fe0bb43dbc433f29ff9b06cc630bff357d33e5da6a351bee9dbd98f') _wdir() { cd "$srcdir/DSView-$pkgver/DSView" @@ -30,6 +32,8 @@ _wdir() { prepare() { cd "$srcdir/DSView-$pkgver" patch -Np1 -i "$srcdir"/'0001-workaround-configure-failure-due-to-boost-cmake.patch' + patch -Np1 -i "$srcdir"/'0002-cmake-python-link.patch' + cd DSView sed -i 's#install(FILES icons/logo.png DESTINATION share/${PROJECT_NAME} RENAME logo.png)##; s#install(FILES DreamSourceLab.rules DESTINATION /etc/udev/rules.d/)##' \