[arch-commits] Commit in python2-backports/repos (staging-any staging-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat May 16 10:23:25 UTC 2020


    Date: Saturday, May 16, 2020 @ 10:23:25
  Author: felixonmars
Revision: 384101

archrelease: copy trunk to staging-any

Added:
  python2-backports/repos/staging-any/
  python2-backports/repos/staging-any/PKGBUILD
    (from rev 384099, python2-backports/trunk/PKGBUILD)

----------+
 PKGBUILD |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

Copied: python2-backports/repos/staging-any/PKGBUILD (from rev 384099, python2-backports/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-05-16 10:23:25 UTC (rev 384101)
@@ -0,0 +1,25 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-backports
+pkgver=1.0
+pkgrel=3
+pkgdesc="Namespace package required for backports collection"
+arch=('any')
+url="https://pypi.python.org/pypi/backports"
+license=('PSF')
+depends=('python2')
+
+build() {
+  cd "$srcdir"
+  cat << EOF > __init__.py
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
+EOF
+  python2 -m compileall .
+}
+
+package() {
+  cd "$srcdir"
+  install -Dm644 __init__.py  "$pkgdir/usr/lib/python2.7/site-packages/backports/__init__.py"
+  install -Dm644 __init__.pyc "$pkgdir/usr/lib/python2.7/site-packages/backports/__init__.pyc"
+}


More information about the arch-commits mailing list