diff options
author | graysky | 2019-05-09 20:29:34 -0400 |
---|---|---|
committer | graysky | 2019-05-09 20:29:34 -0400 |
commit | 75e009ae5b113c2e0cd01a92d835d9d0a687cccb (patch) | |
tree | 9676c08f19de54199d5db10da1a66283620ad3a0 | |
parent | ce68f23d4dd7a532ca2696dd8f1d58933dcb0cb8 (diff) | |
download | aur-75e009ae5b113c2e0cd01a92d835d9d0a687cccb.tar.gz |
Update to 2.2-1
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 12 insertions, 29 deletions
@@ -1,15 +1,14 @@ # Generated by mksrcinfo v8 -# Fri May 10 00:26:27 UTC 2019 +# Fri May 10 00:29:34 UTC 2019 pkgbase = bleachbit-cli pkgdesc = Deletes unneeded files to free disk space and maintain privacy. CLI version/no GUI. pkgver = 2.2 pkgrel = 1 - url = http://bleachbit.sourceforge.net/ + url = https://www.bleachbit.org/ arch = any license = GPL3 - depends = python2 + makedepends = python provides = bleachbit=2.2 - conflicts = bleachbit source = https://download.bleachbit.org/bleachbit-2.2.tar.bz2 sha256sums = 0318cd1bc83655971c9ffd6bf27f4866bbe57381e92cfbcf8a2a6833075b49fa @@ -11,36 +11,20 @@ _pkgname=bleachbit pkgver=2.2 pkgrel=1 pkgdesc='Deletes unneeded files to free disk space and maintain privacy. CLI version/no GUI.' -arch=('any') -url='http://bleachbit.sourceforge.net/' -conflicts=('bleachbit') -license=('GPL3') -depends=('python2') provides=("bleachbit=${pkgver}") +arch=(any) +url='https://www.bleachbit.org/' +license=(GPL3) +makedepends=(python) source=(https://download.bleachbit.org/$_pkgname-$pkgver.tar.bz2) sha256sums=('0318cd1bc83655971c9ffd6bf27f4866bbe57381e92cfbcf8a2a6833075b49fa') -#prepare() { -# cd "$_pkgname-$pkgver" -# patch -Np1 -i "$srcdir"/foo.patch -#} - -build() { - cd "$_pkgname-$pkgver" - - for file in $(find . -name '*.py' -print); do - sed -i -e 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' \ - -i -e 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' "$file" - done - sed -i 's/python/python2/g' Makefile -} - package() { - cd "$_pkgname-$pkgver" + cd $_pkgname-$pkgver - make prefix=/usr DESTDIR="$pkgdir" PYTHON=python2 install + make prefix=/usr DESTDIR="$pkgdir" PYTHON=python2 install - # suggestion by Meow to force script to operate in cli mode - sed -i 's/if 1/if 0/' "$pkgdir"/usr/bin/bleachbit - rm -rf "$pkgdir"/usr/share/{applications,pixmaps} + # suggestion by Meow to force script to operate in cli mode + sed -i 's/if 1/if 0/' "$pkgdir"/usr/bin/bleachbit + rm -rf "$pkgdir"/usr/share/{applications,pixmaps} } |