4 pkgdesc="A collection of tools with the aim to create a complete, portable, multi-architecture, unix-like toolchain for reverse engineering."
6 url="http://radare.org"
8 depends=('vala' 'valabind-hg')
9 makedepends=('mercurial')
10 provides=('radare2' 'r2-bindings')
11 conflicts=('radare2' 'r2-bindings')
13 _hgroot="http://radare.org/hg"
19 if [ -x ${_hgrepo}-build ] ; then
20 msg "Removing leftovers..."
21 rm -rf ${_hgrepo}-build
23 hg clone ${_hgrepo} ${_hgrepo}-build
26 msg "Building radare2..."
27 ./configure --prefix=/usr
28 export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
31 msg "Building language bindings..."
34 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${srcdir}/${_hgrepo}-build/pkgcfg" ./configure --prefix=/usr --enable-devel --enable=python
39 cd ${srcdir}/${_hgrepo}-build
41 make DESTDIR=${pkgdir} install
42 install -d "${pkgdir}/usr/share/man/man1"
43 install -m644 man/* "${pkgdir}/usr/share/man/man1"
46 make DESTDIR=${pkgdir} install-vapi
47 make DESTDIR=${pkgdir} PYTHON=python2.7 install-python
50 rm -rf ${_hgrepo}-build