aboutsummaryrefslogtreecommitdiffstats
path: root/testing/radare2/APKBUILD
blob: 297ee7489559a38123d8271056f8f57769829d8b (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: stef <l0ls0fo2i@ctrlc.hu>
# Contributor: Jose-Luis Rivas <ghostbar@riseup.net>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=radare2
pkgver=2.2.0
pkgrel=0
pkgdesc="An opensource, crossplatform reverse engineering framework"
url="http://www.radare.org"
arch="all !aarch64"
license="GPL-3.0"
options="!check" # upstream does not provide any working testsuite
depends=""
depends_dev=""
makedepends="$depends_dev libzip-dev libressl-dev capstone-dev linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/radare/$pkgname/archive/${pkgver}.tar.gz
	anal_arm_cs_shift.patch"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-syscapstone \
		--with-openssl \
		--with-syszip
	make HAVE_LIBVERSION=1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="e632ca3ffdeefc394e571b5ae7f0619cbbb93c657ff1ef316771e1d10089fbad98dc08b6e7d152e664a4c16e97d4519c1c6445fe737dbd4e3d296bc93c3ee410  radare2-2.2.0.tar.gz
ab016177a1173ad647a0028f398c9daa8ef3f71fcc4c6c2cedd8ee9a60873dd68a5c825722b2d5916408c965a89a5a3099f5582a09457c9183c9dd14b20ee880  anal_arm_cs_shift.patch"