void-packages/srcpkgs/radare2/template

33 lines
1.0 KiB
Bash

# Template file for 'radare2'
pkgname=radare2
version=5.9.4
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=4b194a73ce8dfe12c0b8c70cf6af449260119588ceacc205ac95570bbf17cdd3
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"
}
}