1SUMMARY="Backup program with compression and authenticated encryption"
2DESCRIPTION="BorgBackup (short: Borg) is a deduplicating backup program for the \
3commandline. Optionally, it supports compression and authenticated encryption.
4
5The main goal of Borg is to provide an efficient and secure way to backup data. The \
6data deduplication technique used makes Borg suitable for daily backups since only \
7changes are stored.
8The authenticated encryption technique makes it suitable for backups to not fully \
9trusted targets."
10HOMEPAGE="https://www.borgbackup.org/"
11COPYRIGHT="2015-2023 The Borg Collective
12	2010-2014 Jonas Borgstr��m"
13LICENSE="BSD (3-clause)"
14REVISION="1"
15SOURCE_URI="https://github.com/borgbackup/borg/archive/refs/tags/$portVersion.tar.gz"
16CHECKSUM_SHA256="fe1ae4b7de6d923b164ad2adebcbd6f8624b04b1d72344e0e88082e1b8c0087c"
17SOURCE_FILENAME="borgbackup-$portVersion.tar.gz"
18SOURCE_DIR="borg-$portVersion"
19
20ARCHITECTURES="all !x86_gcc2"
21SECONDARY_ARCHITECTURES="x86"
22
23pythonVersion="3.10"
24pythonPackage="python310"
25
26PROVIDES="
27	$portName = $portVersion
28	cmd:borg
29	cmd:borgfs
30	"
31REQUIRES="
32	haiku$secondaryArchSuffix
33	argon2_cffi_bindings_$pythonPackage
34	cffi_$pythonPackage
35	msgpack_$pythonPackage
36	packaging_$pythonPackage
37	lib:libargon2$secondaryArchSuffix
38	lib:libcrypto$secondaryArchSuffix
39	lib:libdeflate$secondaryArchSuffix
40	lib:libffi$secondaryArchSuffix
41	lib:liblz4$secondaryArchSuffix
42	lib:libxxhash$secondaryArchSuffix
43	lib:libzstd$secondaryArchSuffix
44	"
45
46BUILD_REQUIRES="
47	haiku${secondaryArchSuffix}_devel
48	devel:libcrypto$secondaryArchSuffix
49	devel:libdeflate$secondaryArchSuffix
50	devel:liblz4$secondaryArchSuffix
51	devel:libxxhash$secondaryArchSuffix
52	devel:libzstd$secondaryArchSuffix
53	"
54BUILD_PREREQUIRES="
55	python_pkgconfig_$pythonPackage
56	setuptools_scm_$pythonPackage
57	wheel_$pythonPackage
58	cmd:cython$pythonVersion
59	cmd:gcc$secondaryArchSuffix
60	cmd:git
61	cmd:pip$pythonVersion
62	cmd:pkg_config$secondaryArchSuffix
63	cmd:python$pythonVersion
64	"
65
66SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
67export SETUPTOOLS_SCM_PRETEND_VERSION
68
69INSTALL()
70{
71	installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
72	export PYTHONPATH=$installLocation:$PYTHONPATH
73	mkdir -p $installLocation
74	python$pythonVersion setup.py build install \
75		--root=/ --prefix=$prefix
76}
77