Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: imhex-1.17.0
@ 2022-05-03  6:28 classabbyamp
  2022-05-03  6:54 ` [PR PATCH] [Updated] " classabbyamp
                   ` (31 more replies)
  0 siblings, 32 replies; 33+ messages in thread
From: classabbyamp @ 2022-05-03  6:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is a new pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages new/imhex
https://github.com/void-linux/void-packages/pull/36967

New package: imhex-1.17.0
closes #36954

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/36967.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new/imhex-36967.patch --]
[-- Type: text/x-diff, Size: 4758 bytes --]

From e01298aa3a504305a635486f49dcc5899f6b0146 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 3 May 2022 02:27:08 -0400
Subject: [PATCH] New package: imhex-1.17.0

closes #36954
---
 srcpkgs/imhex-patterns                |  1 +
 srcpkgs/imhex/patches/fix-cmake.patch | 21 +++++++++
 srcpkgs/imhex/template                | 63 +++++++++++++++++++++++++++
 3 files changed, 85 insertions(+)
 create mode 120000 srcpkgs/imhex-patterns
 create mode 100644 srcpkgs/imhex/patches/fix-cmake.patch
 create mode 100644 srcpkgs/imhex/template

diff --git a/srcpkgs/imhex-patterns b/srcpkgs/imhex-patterns
new file mode 120000
index 000000000000..9f335cad9f82
--- /dev/null
+++ b/srcpkgs/imhex-patterns
@@ -0,0 +1 @@
+imhex
\ No newline at end of file
diff --git a/srcpkgs/imhex/patches/fix-cmake.patch b/srcpkgs/imhex/patches/fix-cmake.patch
new file mode 100644
index 000000000000..42cb7ad49c0f
--- /dev/null
+++ b/srcpkgs/imhex/patches/fix-cmake.patch
@@ -0,0 +1,21 @@
+upstream tries to detect a clone without submodules, but poorly
+it also tries to pull in a repo at compile-time using git
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -11,7 +11,6 @@
+ 
+ # Make sure project is configured correctly
+ setDefaultBuiltTypeIfUnset()
+-detectBadClone()
+ 
+ # List plugin names here. Project name must match folder name
+ set(PLUGINS
+@@ -35,6 +35,3 @@
+ 
+ # Configure packaging
+ createPackage()
+-
+-# Download and install all current files from the ImHex-Patterns repo
+-downloadImHexPatternsFiles()
+\ No newline at end of file
diff --git a/srcpkgs/imhex/template b/srcpkgs/imhex/template
new file mode 100644
index 000000000000..365b44ac9efb
--- /dev/null
+++ b/srcpkgs/imhex/template
@@ -0,0 +1,63 @@
+# Template file for 'imhex'
+# TODO: when capstone v5 is out, -DUSE_SYSTEM_CAPSTONE=ON
+pkgname=imhex
+version=1.17.0
+revision=1
+_capstone_version=5.0-rc2
+_nativefiledialog_version=28ade5a5cc5d17cea8fe4034572cac8fd54eb53f
+_libromfs_version=f14e88a72759f7121cb611abb7afa6d6a126c7cf
+_patternlanguage_version=49bafd82a7501cdaf1c75a1c5c36790aefe1a9f2
+_patterns_version=4ec37dea3757d400844378a7d2c6b2f7b812a6a2
+_xdgpp_version=f01f810714443d0f10c333d4d1d9c0383be41375
+create_wrksrc=yes
+build_wrksrc="ImHex-${version}"
+build_style=cmake
+configure_args="-DUSE_SYSTEM_CURL=ON -DUSE_SYSTEM_FMT=ON -DUSE_SYSTEM_LLVM=ON
+ -DUSE_SYSTEM_YARA=ON"
+hostmakedepends="pkg-config clang-tools-extra"
+makedepends="libcurl-devel fmt-devel llvm12 jansson-devel yara-devel
+ freetype-devel glfw-devel gtk+3-devel python3-devel file-devel mbedtls-devel"
+short_desc="Hex editor for reverse engineers and programmers"
+maintainer="classabbyamp <dev@placeviolette.net>"
+license="GPL-2.0-or-later"
+homepage="https://imhex.werwolv.net/"
+changelog="https://github.com/WerWolv/ImHex/releases"
+distfiles="https://github.com/WerWolv/ImHex/archive/refs/tags/v${version}.tar.gz
+ https://github.com/capstone-engine/capstone/archive/refs/tags/${_capstone_version}.tar.gz
+ https://github.com/btzy/nativefiledialog-extended/archive/${_nativefiledialog_version}.tar.gz
+ https://github.com/WerWolv/libromfs/archive/${_libromfs_version}.tar.gz
+ https://github.com/WerWolv/PatternLanguage/archive/${_patternlanguage_version}.tar.gz
+ https://github.com/WerWolv/ImHex-Patterns/archive/${_patterns_version}.tar.gz
+ https://git.sr.ht/~danyspin97/xdgpp/blob/${_xdgpp_version}/xdg.hpp"
+checksum="08e7c6c2b43708e71ad8a2de01d8f4b200e6fb7d17fd29cc9eba76f4f82e03c0
+ 869d94813a887329bc11b4bf1f4410a7a2b7f270176439e90b158127d5a215dd
+ cf2b63e4d004bd15a44f5ce2d99e8c623addc5f316bb0a2a4a3b518a5b1b4380
+ 0531b60880ed1312197ecca20a9f893d0025b8d0456df4a2d5b2acccf940d0db
+ b0f6de8c95ad54819259e4441fc36331383c096b232e2e4213f7b53a218e0f70
+ 146ed4e56e5673ed286967bc67e509d78554976cb61dd28843b4eede670d3490
+ 2e08ce74adb71ff9b9aa9e1c999733fccd4b00967b9cf0c0e51dbf049392a9ec"
+patch_args="-Np1 --directory=$build_wrksrc"
+skip_extraction="xdg.hpp"
+ignore_elf_files="/usr/share/imhex/plugins/builtin.hexplug"
+
+post_extract() {
+	mv capstone-${_capstone_version}/* $build_wrksrc/lib/external/capstone
+	mv nativefiledialog-extended-${_nativefiledialog_version}/* \
+		$build_wrksrc/lib/external/nativefiledialog
+	mv libromfs-${_libromfs_version}/* $build_wrksrc/lib/external/libromfs
+	mv PatternLanguage-${_patternlanguage_version}/* \
+		$build_wrksrc/lib/external/pattern_language
+	mv ${XBPS_SRCDISTDIR}/${pkgname}-${version}/xdg.hpp \
+		$build_wrksrc/lib/external/xdgpp
+}
+
+imhex-patterns_package() {
+	short_desc+=" - patterns and magic files"
+	depends="imhex"
+	pkg_install() {
+		vmkdir usr/share/imhex
+		for d in constants includes magic patterns tips; do
+			vcopy $wrksrc/ImHex-Patterns-${_patterns_version}/$d usr/share/imhex
+		done
+	}
+}

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2022-12-22  0:16 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-03  6:28 [PR PATCH] New package: imhex-1.17.0 classabbyamp
2022-05-03  6:54 ` [PR PATCH] [Updated] " classabbyamp
2022-05-03  7:06 ` classabbyamp
2022-05-03  7:14 ` classabbyamp
2022-05-03 12:38 ` dmarto
2022-05-03 17:09 ` [PR PATCH] [Updated] " classabbyamp
2022-05-03 17:09 ` classabbyamp
2022-05-07 20:58 ` [PR PATCH] [Updated] " classabbyamp
2022-05-17 17:07 ` classabbyamp
2022-05-28  6:56 ` classabbyamp
2022-05-28 19:43 ` classabbyamp
2022-05-28 19:52 ` classabbyamp
2022-05-28 20:11 ` classabbyamp
2022-06-04 15:31 ` [PR PATCH] [Updated] New package: imhex-1.18.1 classabbyamp
2022-06-04 19:48 ` classabbyamp
2022-06-23 22:35 ` New package: imhex-1.18.2 iTrooz
2022-06-23 22:58 ` classabbyamp
2022-07-05 15:00 ` [PR PATCH] [Updated] " classabbyamp
2022-07-07 15:58 ` classabbyamp
2022-07-18  5:20 ` [PR PATCH] [Updated] New package: imhex-1.19.1 classabbyamp
2022-08-03 15:52 ` classabbyamp
2022-08-03 15:52 ` classabbyamp
2022-08-03 16:14 ` classabbyamp
2022-08-03 16:32 ` classabbyamp
2022-08-03 16:59 ` classabbyamp
2022-11-02  2:13 ` github-actions
2022-12-19  1:36 ` [PR PATCH] [Updated] New package: imhex-1.25.0 classabbyamp
2022-12-19  6:28 ` classabbyamp
2022-12-19  7:33 ` classabbyamp
2022-12-19  7:52 ` classabbyamp
2022-12-19  7:57 ` classabbyamp
2022-12-20 22:55 ` [PR PATCH] [Merged]: " classabbyamp
2022-12-22  0:16 ` iTrooz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).