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

Johannes Löthberg demize at archlinux.org
Wed Jan 1 21:35:46 UTC 2020


    Date: Wednesday, January 1, 2020 @ 21:35:45
  Author: demize
Revision: 545946

Drop python2-frozendict

Modified:
  python-frozendict/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++------------------------
 1 file changed, 4 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-01 21:35:29 UTC (rev 545945)
+++ PKGBUILD	2020-01-01 21:35:45 UTC (rev 545946)
@@ -1,10 +1,9 @@
 # Maintainer: Johannes Löthberg <johannes at kyriasis.com>
 # Contributor: Ivan Shapovalov <intelfx at intelfx.name>
 
-pkgbase=python-frozendict
-pkgname=(python-frozendict python2-frozendict)
+pkgname=python-frozendict
 pkgver=1.2
-pkgrel=5
+pkgrel=6
 
 pkgdesc='An immutable dictionary'
 url='https://pypi.python.org/pypi/frozendict/'
@@ -11,28 +10,18 @@
 arch=('any')
 license=('MIT')
 
-makedepends=('python-setuptools'
-             'python2-setuptools')
+depends=('python' 'python-setuptools')
 
 source=("https://pypi.org/packages/source/f/frozendict/frozendict-$pkgver.tar.gz")
 
 md5sums=('483ce6ddfe68ca197bc123aaafebf9ab')
 
-prepare() {
-	cp -a frozendict-$pkgver{,-python2}
-}
-
 build() {
 	cd "$srcdir"/frozendict-$pkgver
 	python setup.py build
-
-	cd "$srcdir"/frozendict-$pkgver-python2
-	python2 setup.py build
 }
 
-package_python-frozendict() {
-	depends=('python' 'python-setuptools')
-
+package() {
 	cd frozendict-$pkgver
 	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 
@@ -39,13 +28,4 @@
 	install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
 
-package_python2-frozendict() {
-	depends=('python2' 'python2-setuptools')
-
-	cd frozendict-$pkgver-python2
-	python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-	install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}
-
 # vim: set ts=4 sw=4 tw=0 ft=PKGBUILD :



More information about the arch-commits mailing list