From 5f7ed219112a3c6782aa42c00ede584feda180c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 4 Oct 2020 21:34:48 +0700 Subject: [PATCH] bumblebee-status: update to 2.0.5. --- srcpkgs/bumblebee-status/template | 35 ++++++++++++++++++------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/srcpkgs/bumblebee-status/template b/srcpkgs/bumblebee-status/template index 48cc3d02b04..c31b9d8370c 100644 --- a/srcpkgs/bumblebee-status/template +++ b/srcpkgs/bumblebee-status/template @@ -1,22 +1,29 @@ # Template file for 'bumblebee-status' pkgname=bumblebee-status -version=1.9.0 +version=2.0.5 revision=1 -archs=noarch -pycompile_dirs="usr/share/${pkgname}/bumblebee" -depends="python-netifaces python-psutil python-requests" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-netifaces python3-psutil python3-requests" short_desc="Modular, theme-able status line generator for the i3 window manager" -maintainer="ibrokemypie " +maintainer="Orphaned " license="MIT" homepage="https://github.com/tobi-wan-kenobi/bumblebee-status" -distfiles="https://github.com/tobi-wan-kenobi/bumblebee-status/archive/v${version}.tar.gz" -checksum=ba483f07f5726454aeaf929069bc82dce85be198b969b96c9bd8d85eab5a619c -python_version=2 #unverified +distfiles="$PYPI_SITE/b/bumblebee-status/bumblebee-status-$version.tar.gz + https://raw.githubusercontent.com/tobi-wan-kenobi/bumblebee-status/v$version/LICENSE" +checksum="37685b0026997ef0055e14b235297f932fb637d1929db8e0e4af19730a8b73be + 7cf86a994584e9e1bfe64c63f4e4b9d9bf757148d7ee2af960a267e79b16eab3" +skip_extraction=LICENSE -do_install() { - vmkdir usr/share/${pkgname} - vmkdir usr/bin - vcopy "bumblebee themes bumblebee-status" usr/share/${pkgname} - ln -sfr /usr/share/bumblebee-status/bumblebee-status ${DESTDIR}/usr/bin - vlicense LICENSE +post_patch() { + vsed -i ' + s|os.path.*THEME_BASE_DIR.*|"/usr/share/bumblebee-status/themes",| + ' bumblebee_status/core/theme.py + vsed -i '/usr.share.bumblebee-status/s/bin/utility/' bumblebee_status/discover.py +} + +post_install() { + rm -rf $DESTDIR/$py3_sitelib/tests + rm -f $DESTDIR/usr/share/bumblebee-status/utility/pacman-updates + vlicense $XBPS_SRCDISTDIR/bumblebee-status-$version/LICENSE }