2023-04-28 18:01:30 +02:00
|
|
|
# Maintainer: iTrooz_ <aur at itrooz dot fr>
|
2022-09-07 22:23:56 +02:00
|
|
|
# Contributor: Morten Linderud <foxboron@archlinux.org>
|
|
|
|
|
2022-07-04 21:40:22 +02:00
|
|
|
pkgname=imhex-bin
|
|
|
|
pkgver=%version%
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM. "
|
|
|
|
arch=("x86_64")
|
|
|
|
url="https://github.com/WerWolv/ImHex"
|
2022-09-07 22:23:56 +02:00
|
|
|
license=('GPL2')
|
2023-12-31 11:39:24 +01:00
|
|
|
depends=(glfw mbedtls freetype2 libglvnd dbus gtk3 curl fmt yara nlohmann-json zlib bzip2 xz zstd)
|
2022-07-04 21:40:22 +02:00
|
|
|
makedepends=(git)
|
|
|
|
provides=(imhex)
|
|
|
|
conflicts=(imhex)
|
2023-01-12 08:25:28 +01:00
|
|
|
source=("$url/releases/download/v$pkgver/imhex-$pkgver-ArchLinux-x86_64.pkg.tar.zst")
|
2022-07-04 21:40:22 +02:00
|
|
|
md5sums=(SKIP)
|
|
|
|
|
|
|
|
package() {
|
2022-09-07 22:23:56 +02:00
|
|
|
install -Dm755 "$srcdir/usr/bin/imhex" "$pkgdir/usr/bin/imhex"
|
2023-12-28 20:26:58 +01:00
|
|
|
install -Dm755 "$srcdir/usr/bin/imhex-updater" "$pkgdir/usr/bin/imhex-updater"
|
2022-09-07 22:23:56 +02:00
|
|
|
install -Dm644 "$srcdir/usr/lib/libimhex.so.$pkgver" "$pkgdir/usr/lib/libimhex.so.$pkgver"
|
2022-07-04 21:40:22 +02:00
|
|
|
|
2023-12-23 21:09:41 +01:00
|
|
|
for plugin in "$srcdir/usr/lib/imhex/plugins/"*.hexplug*; do
|
2022-09-07 22:23:56 +02:00
|
|
|
install -Dm644 "$plugin" "$pkgdir/usr/lib/imhex/plugins/${plugin##*/}"
|
2022-07-04 21:40:22 +02:00
|
|
|
done
|
|
|
|
|
2022-09-07 22:23:56 +02:00
|
|
|
install -d "$pkgdir/usr/share/imhex"
|
|
|
|
cp -r "$srcdir/usr/share/imhex/"{constants,encodings,includes,magic,patterns} "$pkgdir/usr/share/imhex"
|
2023-10-07 21:41:34 +02:00
|
|
|
cp -r "$srcdir/usr/share/"{applications,licenses,pixmaps} "$pkgdir/usr/share"
|
2022-07-04 21:40:22 +02:00
|
|
|
}
|