blob: b7849ee408e86dc177a0de1d19283ea8f1430113 (
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
52
53
54
55
|
# 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=0.10.1
pkgrel=0
pkgdesc="An opensource, crossplatform reverse engineering framework"
url="http://www.radare.org"
arch="all"
license="GPLv3"
depends=""
depends_dev=""
makedepends="$depends_dev libzip-dev openssl-dev capstone-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/radare/radare2/archive/${pkgver}.tar.gz
anal_arm_cs_shift.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--prefix=/usr \
--with-syscapstone \
--with-openssl \
--with-syszip \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" -name Makefile -delete
}
#TODO: build packages from R2PM package manager (src/radare2-*/binr/r2pm/d/*)
md5sums="5fd857705a0dfd60c7b5da312f0f00fd radare2-0.10.1.tar.gz
664640d326fe15894891b98b629e0513 anal_arm_cs_shift.patch"
sha256sums="5e4ad0b6ca4672bade5e3b0e3a01b69897dc2a82b5200d0c0fa5ad2987207a97 radare2-0.10.1.tar.gz
e45f8104bb4b3be17a2eda3028cf51fcfd99f346261ba6eddf6d90d160224a09 anal_arm_cs_shift.patch"
sha512sums="c85e2ff849df5812939a7061aafd2693c14906421b71c9964fe75d5b37c764537a2008e990ca02ef720bc9d07bdc6486e12144204be0187da70b0b75097889c3 radare2-0.10.1.tar.gz
ab016177a1173ad647a0028f398c9daa8ef3f71fcc4c6c2cedd8ee9a60873dd68a5c825722b2d5916408c965a89a5a3099f5582a09457c9183c9dd14b20ee880 anal_arm_cs_shift.patch"
|