Files
haikuports/app-backup/borgbackup/borgbackup-1.4.0.recipe
2024-08-24 11:49:28 +02:00

71 lines
2.1 KiB
Bash

SUMMARY="Backup program with compression and authenticated encryption"
DESCRIPTION="BorgBackup (short: Borg) is a deduplicating backup program for the \
commandline. Optionally, it supports compression and authenticated encryption.
The main goal of Borg is to provide an efficient and secure way to backup data. The \
data deduplication technique used makes Borg suitable for daily backups since only \
changes are stored.
The authenticated encryption technique makes it suitable for backups to not fully \
trusted targets."
HOMEPAGE="https://www.borgbackup.org/"
COPYRIGHT="2015-2024 The Borg Collective
2010-2014 Jonas Borgström"
LICENSE="BSD (3-clause)"
REVISION="4"
SOURCE_URI="https://files.pythonhosted.org/packages/source/b/borgbackup/borgbackup-$portVersion.tar.gz"
CHECKSUM_SHA256="c54c45155643fa66fed7f9ff2d134ea0a58d0ac197c18781ddc2fb236bf6ed29"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
pythonVersion="3.10"
pythonPackage="python${pythonVersion//.}"
PROVIDES="
$portName = $portVersion
cmd:borg
cmd:borgfs
"
REQUIRES="
haiku$secondaryArchSuffix
msgpack_$pythonPackage
packaging_$pythonPackage
lib:libcrypto$secondaryArchSuffix
lib:liblz4$secondaryArchSuffix
lib:libxxhash$secondaryArchSuffix
lib:libzstd$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
python_pkgconfig_$pythonPackage
setuptools_$pythonPackage
setuptools_scm_$pythonPackage
wheel_$pythonPackage
devel:libcrypto$secondaryArchSuffix >= 3
devel:liblz4$secondaryArchSuffix
devel:libxxhash$secondaryArchSuffix
devel:libzstd$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cython$pythonVersion
cmd:gcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:python$pythonVersion
"
INSTALL()
{
# This is only needed if NOT using "haikuporter -G", as the presence of a ".git" folder
# confuses the dumb build system (it assumes that the .git is the one from upstream).
export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
python$pythonVersion setup.py build install \
--root=/ --prefix=$prefix
}