mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 03:00:05 +02:00
77 lines
2.2 KiB
Bash
77 lines
2.2 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-2023 The Borg Collective
|
|
2010-2014 Jonas Borgström"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/borgbackup/borg/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a5af10fab99a135638cf08ab58d14b4ed998cd93c68b76e94d8183ef2c529499"
|
|
SOURCE_FILENAME="borgbackup-$portVersion.tar.gz"
|
|
SOURCE_DIR="borg-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
pythonVersion="3.10"
|
|
pythonPackage="python310"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
cmd:borg
|
|
cmd:borgfs
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
argon2_cffi_bindings_$pythonPackage
|
|
cffi_$pythonPackage
|
|
msgpack_$pythonPackage
|
|
packaging_$pythonPackage
|
|
lib:libargon2$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libdeflate$secondaryArchSuffix
|
|
lib:libffi$secondaryArchSuffix
|
|
lib:liblz4$secondaryArchSuffix
|
|
lib:libxxhash$secondaryArchSuffix
|
|
lib:libzstd$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcrypto$secondaryArchSuffix
|
|
devel:libdeflate$secondaryArchSuffix
|
|
devel:liblz4$secondaryArchSuffix
|
|
devel:libxxhash$secondaryArchSuffix
|
|
devel:libzstd$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
python_pkgconfig_$pythonPackage
|
|
setuptools_scm_$pythonPackage
|
|
wheel_$pythonPackage
|
|
cmd:cython$pythonVersion
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:git
|
|
cmd:pip$pythonVersion
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python$pythonVersion
|
|
"
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION
|
|
|
|
INSTALL()
|
|
{
|
|
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
|
export PYTHONPATH=$installLocation:$PYTHONPATH
|
|
mkdir -p $installLocation
|
|
python$pythonVersion setup.py build install \
|
|
--root=/ --prefix=$prefix
|
|
}
|