void-packages/srcpkgs/rr/template

30 lines
789 B
Bash

# Template file for 'rr'
pkgname=rr
version=5.8.0
revision=1
archs="i686 x86_64"
build_style=cmake
configure_args="-DBUILD_TESTS=OFF -DCMAKE_CXX_STANDARD=14"
hostmakedepends="pkg-config python3"
makedepends="python3-pexpect zlib-devel capnproto-devel"
short_desc="Nondeterministic debugger"
maintainer="Matthias von Faber <mvf@gmx.eu>"
license="MIT, BSD-2-Clause"
homepage="http://rr-project.org/"
distfiles="https://github.com/rr-debugger/rr/archive/${version}.tar.gz"
checksum=8b162a3340a6ddb29170b359fe0f2e023f86a9bfea035555b74d38d9fc5e0c00
nopie=yes
case "$XBPS_MACHINE" in
x86_64*) hostmakedepends+=" gcc-multilib" ;;
esac
pre_configure() {
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
}
post_install() {
vlicense LICENSE
}