[arch-commits] Commit in python-contextlib2/repos/community-any (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Wed Dec 15 12:26:55 UTC 2021


    Date: Wednesday, December 15, 2021 @ 12:26:54
  Author: arojas
Revision: 1073007

archrelease: copy trunk to community-any

Added:
  python-contextlib2/repos/community-any/PKGBUILD
    (from rev 1073006, python-contextlib2/trunk/PKGBUILD)
Deleted:
  python-contextlib2/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   78 +++++++++++++++++++++++--------------------------------------
 1 file changed, 30 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-15 12:26:45 UTC (rev 1073006)
+++ PKGBUILD	2021-12-15 12:26:54 UTC (rev 1073007)
@@ -1,48 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-# Contributor: Cedric Girard <girard.cedric at gmail.com>
-
-_pkgname=contextlib2
-pkgbase=python-$_pkgname
-pkgname=(python-$_pkgname python2-$_pkgname)
-pkgver=0.6.0.post1
-pkgrel=5
-pkgdesc="Backport of the standard library's contextlib module to earlier Python versions"
-arch=('any')
-url='https://github.com/jazzband/contextlib2'
-license=('PSF')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("$pkgname-$pkgver::$url/archive/v$pkgver.tar.gz")
-sha512sums=('8fd8073b4aab96d46a8d2aacfde9e9d3b1c517d9f05a86ae07e1528696c11313c9b92bee9673d8333f62bb3503a8ef3c488db7c09f3a13df5752e341e572f23f')
-
-prepare() {
-  cp -a $_pkgname-$pkgver{,-py2}
-}
-
-build() {
-  echo "Building python-$_pkgname $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver
-  python setup.py build
-
-  echo "Building python2-$_pkgname $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver-py2
-  python2 setup.py build
-}
-
-package_python-contextlib2() {
-  depends=('python')
-  cd $_pkgname-$pkgver
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-contextlib2() {
-  depends=('python2')
-  cd $_pkgname-$pkgver-py2
-
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-contextlib2/repos/community-any/PKGBUILD (from rev 1073006, python-contextlib2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-15 12:26:54 UTC (rev 1073007)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Cedric Girard <girard.cedric at gmail.com>
+
+_pkgname=contextlib2
+pkgname=python-$_pkgname
+pkgver=0.6.0.post1
+pkgrel=6
+pkgdesc="Backport of the standard library's contextlib module to earlier Python versions"
+arch=('any')
+url='https://github.com/jazzband/contextlib2'
+license=('PSF')
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver::$url/archive/v$pkgver.tar.gz")
+sha512sums=('8fd8073b4aab96d46a8d2aacfde9e9d3b1c517d9f05a86ae07e1528696c11313c9b92bee9673d8333f62bb3503a8ef3c488db7c09f3a13df5752e341e572f23f')
+
+build() {
+  echo "Building python-$_pkgname $pkgver"
+  cd "$srcdir"/$_pkgname-$pkgver
+  python setup.py build
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list