From f43bda48d8c10d2a1ac14819a00e4fd7209d0640 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 20 May 2018 18:41:11 +0200 Subject: [PATCH] python-b2: broken --- srcpkgs/python-b2/template | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/srcpkgs/python-b2/template b/srcpkgs/python-b2/template index 5728bc324e1..cb2c3a8d02f 100644 --- a/srcpkgs/python-b2/template +++ b/srcpkgs/python-b2/template @@ -1,20 +1,28 @@ +broken="Missing tqdm dependency" # Template file for 'python-b2' pkgname=python-b2 version=1.1.0 -revision=5 -noarch=y -wrksrc="B2_Command_Line_Tool-$version" -build_style=python-module -hostmakedepends="python python-setuptools" -depends="python-logfury python-futures python-Arrow python-dateutil" -short_desc="CLI that gives easy access B2 Cloud Storage" +revision=6 +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 " license="MIT" homepage="https://github.com/Backblaze/B2_Command_Line_Tool" -distfiles="$homepage/archive/v$version.tar.gz" +distfiles="${homepage}/archive/v${version}.tar.gz" checksum=fae0dd48a2b6ab38cb142b91d7907a66144659d599bdfbf3c8995788ed29313b -pycompile_module="b2" 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 }