mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
borgbackup, new recipe (#6921)
This commit is contained in:
78
app-backup/borgbackup/borgbackup-1.2.0.recipe
Normal file
78
app-backup/borgbackup/borgbackup-1.2.0.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
SUMMARY="Deduplicating backup program with compression and authenticated encryption"
|
||||
DESCRIPTION="BorgBackup (short: Borg) is a deduplicating backup program.
|
||||
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-2022 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="7659322a078dd3705f89345d0b18b4cdb2d7fee1b65391b0596cb75a19cac64f"
|
||||
SOURCE_FILENAME="borgbackup-$portVersion.tar.gz"
|
||||
SOURCE_DIR="borg-$portVersion"
|
||||
SOURCE_URI_2="https://github.com/hynek/argon2-cffi/archive/refs/tags/21.3.0.tar.gz"
|
||||
CHECKSUM_SHA256_2="1f5cdc94200eccdf8c63c1cc5c0c72e38076d8e81968218b0ec0573fd72b2ba4"
|
||||
SOURCE_FILENAME_2="argon2-cffi-21.3.0.tar.gz"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
cmd:borg
|
||||
cmd:borgfs
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
argon2_cffi_bindings${secondaryArchSuffix}_python39
|
||||
cffi${secondaryArchSuffix}_python39
|
||||
msgpack_python39
|
||||
packaging_python39
|
||||
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_python39
|
||||
setuptools_scm_python39
|
||||
wheel_python39
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:cython3.9$secondaryArchSuffix
|
||||
cmd:git
|
||||
cmd:pip3.9
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python3.9
|
||||
"
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cp -rf $sourceDir2/argon2-cffi-21.3.0/src/argon2 src/
|
||||
|
||||
installLocation=$prefix/lib/python3.9/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
python3.9 setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
}
|
||||
Reference in New Issue
Block a user