# Contributor: Valery Kartel # Contributor: stef # Contributor: Jose-Luis Rivas # Maintainer: Valery Kartel pkgname=radare2 pkgver=0.10.3 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="197614fd78af6ee01dcfc7adbac1a6e0 radare2-0.10.3.tar.gz 664640d326fe15894891b98b629e0513 anal_arm_cs_shift.patch" sha256sums="e64176357c34f957960e34102c6b89a7c9d1ed1dd879c419b6d1619bec6a5949 radare2-0.10.3.tar.gz e45f8104bb4b3be17a2eda3028cf51fcfd99f346261ba6eddf6d90d160224a09 anal_arm_cs_shift.patch" sha512sums="8868b5a4533d232b4e97978a1178a341126d2732a27cb9b3bdaa4893c8928e9d50efa3e96b249b04eebcf8dfb3911ba15ae237d2437adb0bbed496ce8ce34e08 radare2-0.10.3.tar.gz ab016177a1173ad647a0028f398c9daa8ef3f71fcc4c6c2cedd8ee9a60873dd68a5c825722b2d5916408c965a89a5a3099f5582a09457c9183c9dd14b20ee880 anal_arm_cs_shift.patch"