void-packages/srcpkgs/radare2/template

33 lines
1.0 KiB
Bash

# Template file for 'radare2'
pkgname=radare2
version=5.9.6
revision=1
build_style=meson
configure_args="-Denable_tests=false -Duse_sys_capstone=true
-Duse_sys_magic=true -Duse_sys_xxhash=true
-Duse_ssl=true -Duse_sys_openssl=true -Duse_libuv=true
-Duse_sys_zlib=true -Duse_sys_zip=true -Duse_sys_lz4=true"
hostmakedepends="pkg-config"
makedepends="capstone-devel file-devel xxHash-devel openssl-devel libuv-devel
zlib-devel libzip-devel liblz4-devel"
short_desc="Advanced command line debugger and hexadecimal editor"
maintainer="yosh <yosh-git@riseup.net>"
license="LGPL-3.0-only"
homepage="https://www.radare.org"
distfiles="https://github.com/radareorg/radare2/archive/${version}.tar.gz"
checksum=91a4475c16eb17015080b9b688e17e666d1982b0727e7aea71ddf0a7ad2ccd0d
case "$XBPS_TARGET_MACHINE" in
mips*) CFLAGS="-Os";;
esac
radare2-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}