# Maintainer: zocker_160 pkgname=rehex pkgver=0.4.1 pkgrel=1 pkgdesc="A cross-platform (Windows, Linux, Mac) hex editor for reverse engineering, and everything else" arch=('x86_64') url="https://github.com/solemnwarning/rehex" license=('GPL2') _base_depends=('libjansson4' 'lua5.3' 'liblua5.3-0' 'libwxgtk3.0-gtk3-0v5' 'libunistring2' 'libgtk-3-0') depends=("${_base_depends[@]}" 'libcapstone3') bullseye_depends=("${_base_depends[@]}" 'libcapstone4') makedepends=('libjansson-dev' 'libcapstone-dev' 'libwxgtk3.0-gtk3-dev' 'libgtk-3-dev' 'liblua5.3-dev' 'git' 'libunistring-dev') provides=('rehex') conflicts=('rehex-git') source=("$pkgname-$pkgver::$url/archive/refs/tags/$pkgver.tar.gz" "rehex.patch") sha256sums=('88a8ec41147a5ed5c542d40496b7231fb42ebfd1783c4498202fca5a1ddaae8f' '925aa979895253ba482780da91cb72fb11260dc44ce0a0f9650164f4831a5d83') build() { cd $srcdir/$pkgname-$pkgver make -j$(nproc) } package() { cd $srcdir/$pkgname-$pkgver make DESTDIR="$pkgdir" prefix="/usr" install patch -d "$pkgdir" -p1 < $srcdir/"$pkgname".patch }