49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# Template file for 'cryfs'
|
|
pkgname=cryfs
|
|
version=0.11.2
|
|
revision=3
|
|
create_wrksrc=yes
|
|
build_style=cmake
|
|
configure_args="-DCRYFS_UPDATE_CHECKS=off -DBoost_USE_STATIC_LIBS=OFF
|
|
-DCMAKE_CXX_STANDARD_LIBRARIES=-lfmt
|
|
-DDEPENDENCY_CONFIG=../cmake-utils/DependenciesFromLocalSystem.cmake"
|
|
hostmakedepends="pkg-config python3"
|
|
makedepends="boost-devel fuse-devel libcurl-devel libgomp-devel crypto++-devel
|
|
spdlog range-v3 fmt-devel"
|
|
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=a89ab8fea2d494b496867107ec0a3772fe606ebd71ef12152fcd233f463a2c00
|
|
|
|
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}
|
|
}
|