void-packages/srcpkgs/bees/template

32 lines
931 B
Bash

# Template file for 'bees'
pkgname=bees
version=0.8
revision=2
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="Orphaned <orphan@voidlinux.org>"
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=3efb1a7290b014b8dd0cb64ce98382c2bde1f9ccf649e1b4fc86f27ffa42edea
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
CXXFLAGS+=" -latomic"
fi
pre_build() {
export BEES_VERSION="${version}"
}