void-packages/srcpkgs/cryfs/template
2021-03-17 06:35:13 +07:00

48 lines
1.4 KiB
Bash

# Template file for 'cryfs'
pkgname=cryfs
version=0.10.2
revision=2
create_wrksrc=yes
build_style=cmake
configure_args="-DCRYFS_UPDATE_CHECKS=off -DCMAKE_BUILD_TYPE=None
-DBoost_USE_STATIC_LIBS=OFF -DCMAKE_CXX_STANDARD_LIBRARIES=-lfmt"
hostmakedepends="pkg-config python3"
makedepends="boost-devel fuse-devel libcurl-devel libgomp-devel crypto++-devel
spdlog"
depends="fuse"
short_desc="Cryptographic filesystem for the cloud"
maintainer="Andy Weidenbaum <atweiden@tutanota.de>"
license="LGPL-3.0-only"
homepage="https://www.cryfs.org"
changelog="https://github.com/cryfs/cryfs/raw/master/ChangeLog.txt"
distfiles="https://github.com/cryfs/cryfs/releases/download/${version}/${pkgname}-${version}.tar.gz"
checksum=004c7fdf537062e197aaa0bcdafd2682904a279802441bb6063cb72c1fba52d2
patch_args=-Np1
if [ "${XBPS_CHECK_PKGS}" ]; then
configure_args+=" -DBUILD_TESTING=on"
fi
post_patch() {
rm -rf vendor/cryptopp
rm -rf vendor/spdlog
}
pre_configure() {
local _pkg_config="$($PKG_CONFIG --cflags spdlog)"
CFLAGS+=" $_pkg_config"
CXXFLAGS+=" $_pkg_config"
}
do_check() {
cd ${wrksrc}/build
# XXX: check their Travis-CI script on update
./test/gitversion/gitversion-test
./test/cpp-utils/cpp-utils-test
./test/parallelaccessstore/parallelaccessstore-test
./test/blockstore/blockstore-test
./test/blobstore/blobstore-test
./test/cryfs/cryfs-test
# ./test/cryfs-cli/cryfs-cli-test
cd ${wrksrc}
}