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

Jelle van der Waa jelle at archlinux.org
Tue Aug 27 16:02:38 UTC 2019


    Date: Tuesday, August 27, 2019 @ 16:02:38
  Author: jelle
Revision: 503305

die python2 die

Modified:
  python-send2trash/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++----------------------
 1 file changed, 4 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-27 15:54:37 UTC (rev 503304)
+++ PKGBUILD	2019-08-27 16:02:38 UTC (rev 503305)
@@ -2,8 +2,7 @@
 # Contributor: Balló György <ballogyor+arch at gmail dot com>
 
 _pkgbase=send2trash
-pkgbase=python-$_pkgbase
-pkgname=('python-send2trash' 'python2-send2trash')
+pkgname=python-send2trash
 pkgver=1.5.0
 pkgrel=2
 pkgdesc="Send file to trash natively"
@@ -10,35 +9,18 @@
 arch=('any')
 url="https://github.com/hsoft/send2trash"
 license=('BSD')
-makedepends=('python' 'python-setuptools'
-	     'python' 'python2-setuptools')
+depends=('python')
+makedepends=('python' 'python-setuptools')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/hsoft/$_pkgbase/archive/$pkgver.tar.gz")
 sha256sums=('7cebc0ffc8b6d6e553bce9c6bb915614610ba2dec17c2f0643b1b97251da2a41')
 
-prepare() {
-	cp -a $_pkgbase-$pkgver{,-python2}
-}
-
 build() {
 	cd $_pkgbase-$pkgver
 	python setup.py build
-
-	cd ../$_pkgbase-$pkgver-python2
-	python2 setup.py build
 }
 
-package_python-send2trash() {
-	depends=('python')
-
+package() {
 	cd $_pkgbase-$pkgver
 	python setup.py install --root "$pkgdir" --optimize=1 --skip-build
 	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-package_python2-send2trash() {
-	depends=('python2')
-
-	cd $_pkgbase-$pkgver-python2
-	python2 setup.py install --root "$pkgdir" --optimize=1 --skip-build
-	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}


More information about the arch-commits mailing list