From 23b1213acb3eb3736a72135c58a29f2157d6e35c Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 6 Jun 2018 18:00:14 +0200 Subject: [PATCH] python-b2: rename to backblaze-b2 - fix pkgname (drop python- prefix) - remove test directory from site-packages root - rename binary to backblaze-b2 to avoid conflict with Boost's b2 --- srcpkgs/backblaze-b2/template | 27 +++++++++++++++++++++++++++ srcpkgs/python-b2/template | 23 +++-------------------- 2 files changed, 30 insertions(+), 20 deletions(-) create mode 100644 srcpkgs/backblaze-b2/template diff --git a/srcpkgs/backblaze-b2/template b/srcpkgs/backblaze-b2/template new file mode 100644 index 0000000000..c14eade324 --- /dev/null +++ b/srcpkgs/backblaze-b2/template @@ -0,0 +1,27 @@ +# 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 " +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 +} diff --git a/srcpkgs/python-b2/template b/srcpkgs/python-b2/template index cb2c3a8d02..c9ad761d23 100644 --- a/srcpkgs/python-b2/template +++ b/srcpkgs/python-b2/template @@ -1,28 +1,11 @@ -broken="Missing tqdm dependency" # Template file for 'python-b2' pkgname=python-b2 version=1.1.0 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" +build_style=meta +depends="backblaze-b2>=${version}_${revision}" +short_desc="Command Line Interface for Backblaze's B2 storage service (transitional dummy package)" maintainer="Andrea Brancaleoni " 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 -}