[arch-commits] Commit in bleachbit/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sun Sep 8 16:46:37 UTC 2019


    Date: Sunday, September 8, 2019 @ 16:46:36
  Author: arojas
Revision: 509004

Generate bytecode for the correct python version

Modified:
  bleachbit/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-08 16:15:53 UTC (rev 509003)
+++ PKGBUILD	2019-09-08 16:46:36 UTC (rev 509004)
@@ -8,18 +8,22 @@
 
 pkgname=bleachbit
 pkgver=2.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Deletes unneeded files to free disk space and maintain privacy'
 arch=(any)
 url='https://www.bleachbit.org/'
 license=(GPL3)
 depends=(pygtk)
-makedepends=(python)
 source=(https://download.bleachbit.org/$pkgname-$pkgver.tar.bz2)
 sha256sums=('0318cd1bc83655971c9ffd6bf27f4866bbe57381e92cfbcf8a2a6833075b49fa')
 
+prepare() {
+  cd $pkgname-$pkgver
+  sed -e 's|python|python2|g' -i Makefile -i bleachbit/CLI.py
+}
+
 package() {
-    cd $pkgname-$pkgver
+  cd $pkgname-$pkgver
 
-    make prefix=/usr DESTDIR="$pkgdir" PYTHON=python2 install
+  make prefix=/usr DESTDIR="$pkgdir" install
 }


More information about the arch-commits mailing list