void-packages/srcpkgs/r2-bindings-git/template

54 lines
1.3 KiB
Text

# Template file for 'r2-bindings-git'
pkgname=r2-bindings-git
version="$(date -u +%Y%m%d)"
revision=1
short_desc="Advanced command line debugger and hexadecimal editor (bindings, git snapshot)"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-3"
homepage="http://radare.org"
long_desc="
It is composed by an hexadecimal editor (radare) with a wrapped IO layer
supporting multiple backends for local/remote files, accessing filesystems,
debugger (osx,bsd,linux,w32), stream analyzer, assembler/disassembler
(rasm) for x86,arm,ppc,m68k,java,msil,sparc, etc.
This package contains the radare2 bindings for multiple languages."
nofetch=yes
noextract=yes
makedepends="pkg-config swig>=2.0.7 valabind-git>=${version}
python-devel radare2-devel-git>=${version}"
do_fetch() {
local url="git://github.com/radare/radare2"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
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
}
r2-bindings-git_package() {
replaces="r2-bindings>=0"
provides="r2-bindings-9999"
depends="radare2-git>=${version} python>=2.7.3"
pycompile_module="r2"
noverifyrdeps=yes
pkg_install() {
vmove usr
}
}