summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 960e0242a09ea2f80ca66cb6ff5ec8bd276434c1 (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
# Maintainer: Thibaut PĂ©rami <thibaut.perami@ens.fr>

pkgname=zydis
pkgver=3.1.0
pkgrel=1
pkgdesc="The ultimate, open-source X86 & X86-64 decoder/disassembler library."
arch=('x86_64')
url="https://zydis.re"
license=('MIT')
depends=('gcc-libs')
makedepends=('cmake' 'git')
source=("${pkgname%-git}"::"git+https://github.com/zyantific/zydis#tag=v${pkgver}")
sha256sums=('SKIP')

prepare() {
  cd "${pkgname}"
  git submodule update --init
}

build() {
  cd "${pkgname}"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -B build
  cmake --build build
}

package() {
  cd "${pkgname}/build"
  make DESTDIR="${pkgdir}" install
  # Maybe put that in a separate pakage.
  cd "zycore"
  make DESTDIR="${pkgdir}" install
}