blob: 3006f10fd66a35abbd6c953883e20ca13b8ce92c (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Martin Sandsmark <martin.sandsmark@kde.org>
pkgname=redasm
_pkgver=2.1.1-fix
pkgver=${_pkgver//-/.}
pkgrel=2
url="https://redasm.io/"
arch=(i686 x86_64)
pkgdesc="The OpenSource Disassembler"
license=(GPL3)
depends=(qt5-base)
makedepends=(git cmake)
source=("git+https://github.com/REDasmOrg/REDasm.git#tag=v${_pkgver}"
"git+https://github.com/REDasmOrg/REDasm-Library.git"
"git+https://github.com/Dax89/QHexView.git"
#"git+https://github.com/aquynh/capstone.git"
"git+https://github.com/capstone-engine/capstone.git")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cd REDasm
git submodule init
git config submodule.LibREDasm.url "${srcdir}/REDasm-Library"
git config submodule.QHexView.url "${srcdir}/QHexView"
git -c protocol.file.allow=always submodule update
cd LibREDasm
git submodule init
git config submodule.depends/capstone.url "${srcdir}/capstone"
git -c protocol.file.allow=always submodule update
}
build() {
cmake -B build -S "REDasm" -Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
cd build
install -D -m755 REDasm "${pkgdir}"/usr/bin/REDasm
install -D -m755 LibREDasm.so "${pkgdir}"/usr/lib/LibREDasm.so
install -D -m644 "${srcdir}"/REDasm/README.md "${pkgdir}"/usr/share/doc/${pkgname}/README
install -D -m644 "${srcdir}"/REDasm/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|