blob: c8b8735f1f683a4855536c4216b876b37666ae45 (
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
|
# 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=1
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")
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 submodule update
mkdir -p build
cd LibREDasm
git submodule init
git config submodule.depends/capstone.url "$srcdir/capstone"
git submodule update
}
build() {
cd REDasm/build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd REDasm/build
install -D -m755 REDasm ${pkgdir}/usr/bin/REDasm
install -D -m755 LibREDasm.so ${pkgdir}/usr/lib/LibREDasm.so
install -D -m644 ../README.md ${pkgdir}/usr/share/doc/${pkgname}/README
install -D -m644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
|