summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fbb5a93fb7ec136838c83b7a7d0a40a0fc7e8475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Seth Buccella <sethfb at gmail dot com>
# Contributor: Alex Sarum <rum.274.4 at gmail dot com>

pkgname=imhex-git
pkgver=1.14.0.r54.g0e40b8a8
pkgrel=1
pkgdesc="A Hex Editor for Reverse Engineers, Programmers and people that value their eye sight when working at 3 AM"
arch=('x86_64')
url="https://github.com/WerWolv/ImHex"
license=('GPL2')
depends=('glfw' 'glm' 'capstone' 'llvm-libs' 'llvm' 'nlohmann-json' 'python')
makedepends=('git' 'cmake')
optdepends=()
provides=('imhex')
conflicts=('imhex')
source=("$pkgname::git+https://github.com/WerWolv/ImHex.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$pkgname"
  git submodule update --init --recursive
  cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
  make -C build
}

package() {
  cd "$pkgname"

  install -DTm755 build/imhex "${pkgdir}/usr/bin/imhex"
}