From 1b2b3b952b615d5c97b86db80dd8c4c989404652 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 25 Oct 2021 22:56:25 -0400 Subject: [PATCH] New package: hobbits-0.52.0 --- srcpkgs/hobbits/patches/python_version.patch | 11 +++++++ srcpkgs/hobbits/template | 31 ++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 srcpkgs/hobbits/patches/python_version.patch create mode 100644 srcpkgs/hobbits/template diff --git a/srcpkgs/hobbits/patches/python_version.patch b/srcpkgs/hobbits/patches/python_version.patch new file mode 100644 index 000000000000..47b1490c4b0a --- /dev/null +++ b/srcpkgs/hobbits/patches/python_version.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt 2021-10-07 11:31:22.000000000 -0400 ++++ b/CMakeLists.txt 2021-10-25 21:16:59.429406408 -0400 +@@ -124,7 +124,7 @@ + set ( Python3_ROOT_DIR "${MANUAL_PYTHON_PATH}" ) + endif() + +-find_package (Python3 3.9 EXACT COMPONENTS Interpreter Development REQUIRED) ++find_package (Python3 3.9 COMPONENTS Interpreter Development REQUIRED) + message("Python3 Libs: ${Python3_LIBRARIES}") + + # diff --git a/srcpkgs/hobbits/template b/srcpkgs/hobbits/template new file mode 100644 index 000000000000..5485a58aad31 --- /dev/null +++ b/srcpkgs/hobbits/template @@ -0,0 +1,31 @@ +# Template file for 'hobbits' +pkgname=hobbits +version=0.52.0 +revision=1 +build_style=cmake +hostmakedepends="pkg-config qt5-host-tools qt5-qmake" +makedepends="fftw-devel libusb-devel libpcap-devel python3-devel qt5-devel" +short_desc="Multi-platform GUI for bit-based analysis, processing and visualization" +maintainer="classabbyamp " +license="MIT, GPL-2.0-or-later" +homepage="https://mahlet-inc.github.io" +distfiles="https://github.com/Mahlet-Inc/hobbits/archive/refs/tags/v${version}.tar.gz" +checksum=3332e02380ab46649f0ec2066b63b6e0fb04b55cdca973d28880f1607ebbf27e + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" python3" +fi + +case "$XBPS_TARGET_MACHINE" in + arm*|aarch64*) CXXFLAGS+=" -fsigned-char" +esac + +pre_configure() { + # upstream provides no way to set the version through configure_args + echo "${version}" > .version +} + +post_install() { + vinstall src/hobbits-gui/images/icons/HobbitsRingSmall.png 644 usr/share/pixmaps + vlicense LICENSE.txt +}