void-packages/srcpkgs/radare2/template

33 lines
1.0 KiB
Bash

# Template file for 'radare2'
pkgname=radare2
version=5.7.0
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="Orphaned <orphan@voidlinux.org>"
license="LGPL-3.0-only"
homepage="https://www.radare.org"
distfiles="https://github.com/radareorg/radare2/archive/${version}.tar.gz"
checksum=fe7ca861bf71dd3c4766a57f73fd97b216bcfde161720f949c05875df212976b
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"
}
}