# Template file for 'r2-bindings'
pkgname=r2-bindings
version=0.9.4
revision=2
wrksrc="radare2-${version}"
short_desc="Advanced command line debugger and hexadecimal editor (bindings)"
maintainer="pancake <pancake@nopcode.org>"
license="LGPL-3"
homepage="http://www.radare.org"
distfiles="${homepage}/get/radare2-${version}.tar.gz"
checksum=7af3413f736b979dbf5db3688e9bc3052879a28428ac4f10086fa7f93cba5de0

hostmakedepends="pkg-config swig"
makedepends="valabind>=0.7.2 python-devel radare2-devel>=${version}"
pycompile_module="r2"
depends="radare2-devel-${version}*"
noverifyrdeps=1

do_configure() {
	cd r2-bindings
	./configure --prefix=/usr --enable=python --enable-devel
}

do_build() {
	cd r2-bindings
	make ${makejobs}
}

do_install() {
	cd r2-bindings
	make DESTDIR=${DESTDIR} install
}
