diff --git a/srcpkgs/stlink/patches/enable-cross-gtk.patch b/srcpkgs/stlink/patches/enable-cross-gtk.patch new file mode 100644 index 00000000000..156a2bb4b6c --- /dev/null +++ b/srcpkgs/stlink/patches/enable-cross-gtk.patch @@ -0,0 +1,21 @@ +commit 850c646b0b150f9e2efc0f8d2ee93241fd19db79 +Author: Enno Boland +Date: Thu Oct 18 19:14:08 2018 +0200 + + Revert "skip GTK detection if we're cross-compiling (#588)" + + This reverts commit cc3a5705099019e01dc59f7907d0c5b1b85878d8. + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 395848b..39c23b0 100644 +--- ./CMakeLists.txt ++++ ./CMakeLists.txt +@@ -39,7 +39,7 @@ endif() + # Dependencies + ### + find_package(LibUSB REQUIRED) +-if (NOT APPLE AND NOT WIN32 AND NOT CMAKE_CROSSCOMPILING) ++if (NOT APPLE AND NOT WIN32) + find_package(PkgConfig) + pkg_check_modules(gtk gtk+-3.0) + endif () diff --git a/srcpkgs/stlink/template b/srcpkgs/stlink/template index 4ac74ed82d1..6e2a580d49c 100644 --- a/srcpkgs/stlink/template +++ b/srcpkgs/stlink/template @@ -1,7 +1,7 @@ # Template file for 'stlink' pkgname=stlink version=1.5.1 -revision=1 +revision=2 build_style=cmake configure_args="-DSTLINK_UDEV_RULES_DIR=/usr/lib/udev/rules.d -DSTLINK_MODPROBED_DIR=/usr/lib/modprobe.d" hostmakedepends="pkg-config"