1 # Maintainer: thotypous <matiasΘarchlinux-br·org>
6 pkgdesc="Multi-architecture binary analysis framework based on a common domain-specific language for reverse engineering"
7 url="http://www.eresi-project.org"
10 depends=('openssl' 'bash')
11 makedepends=('subversion')
18 _svntrunk="http://svn.eresi-project.org/svn/trunk/"
23 msg "Getting sources..."
24 svn co "${_svntrunk}" "${_svnmod}" -r "${pkgver}"
29 _opts="--enable-32-64 --enable-readline --libasm-ia32 --libasm-sparc --libasm-mips --libasm-arm"
30 [ "$CARCH" = "x86_64" ] && _opts="${_opts} --enable-m64"
32 sed -i 's,/usr/local,/usr,g;s,ln -sf \\$([A-Z]\{3\}PATH),ln -sf ,;s,^GENTOO=.*$,GENTOO=1,' configure || return 1
33 sed -i '/dprintf(/d' librevm/include/revm.h || return 1
35 ./configure ${_opts} || return 1
37 make install DESTDIR="${pkgdir}" || return 1
39 rm -rf "${pkgdir}/usr/include/libelfsh/.svn"