void-packages/srcpkgs/bees/template

33 lines
1000 B
Bash

# Template file for 'bees'
pkgname=bees
version=0.7
revision=1
archs="~*-musl"
build_style=gnu-makefile
make_check_target="test"
hostmakedepends="pkg-config"
depends="btrfs-progs"
short_desc="Best-Effort Extent-Same, a btrfs deduplication agent"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="GPL-3.0-or-later"
homepage="https://github.com/Zygo/bees"
distfiles="https://github.com/Zygo/bees/archive/refs/tags/v${version}.tar.gz"
checksum=2e67422b9f0d9ef665523b474fb27055efffceb263f8ccfdfda2a3aac9c6bdb1
if [ "$CROSS_BUILD" ]; then
# Tests don't work properly with cross compilation, because it doesn't
# differentiate between host and target compilers correctly.
#
# There is a patch included which starts working on this, but I couldn't get it
# to work properly, so it's not being applied right now.
make_check="no"
fi
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
broken="undefined reference to __atomic_fetch_add_8"
fi
pre_build() {
export BEES_VERSION="${version}"
}