void-packages/srcpkgs/backblaze-b2/template

28 lines
877 B
Bash
Raw Normal View History

# Template file for 'backblaze-b2'
pkgname=backblaze-b2
version=1.1.0
revision=7
noarch=yes
wrksrc="B2_Command_Line_Tool-${version}"
build_style=python2-module
pycompile_module="b2"
hostmakedepends="python-setuptools"
depends="python-setuptools python-logfury python-futures python-Arrow
python-requests python-six"
short_desc="Command Line Interface for Backblaze's B2 storage service"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="MIT"
homepage="https://github.com/Backblaze/B2_Command_Line_Tool"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=fae0dd48a2b6ab38cb142b91d7907a66144659d599bdfbf3c8995788ed29313b
post_install() {
# Remove test directory polluting site-packages
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/test
# Avoid conflict with Boost's b2 tool
mv ${DESTDIR}/usr/bin/b2 ${DESTDIR}/usr/bin/backblaze-b2
vlicense LICENSE
}