Receipt for: borgbackup

source
# SliTaz package receipt.

PACKAGE="borgbackup"
VERSION="1.1.10"
CATEGORY="system-tools"
SHORT_DESC="Deduplicating archiver with compression & authenticated encryption"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://www.borgbackup.org/"
WGET_URL="https://files.pythonhosted.org/packages/24/13/77cd0bed77fa80cf79e18d1fb1806641e895878bda389771ea63f30560de/$TARBALL"
TAGS="backup"

DEPENDS="py3k gcc-lib-base acl ssh"
BUILD_DEPENDS="py3k-dev py3k-cython openssl-dev py3k-setuptools"
SUGGESTED="fuse"

# What is the latest version available today?
current_version()
{
	wget -O - https://www.borgbackup.org/releases/ 2>/dev/null | \
	sed '/current release/!d;s|.*release is ||;s|,.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
	python3 ./setup.py build &&
	python3 setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir $install/usr/share
	cp -a $src/docs/man $install/usr/share
	cp -a $install/usr $fs/
}