summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python2-backports
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-11-15 21:34:23 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-11-15 21:34:23 (GMT)
commit701943ff7168cba6e02762c4f9762e974ad171de (patch)
treee19f5ff9b15d12ea9b6587659fcca96e373253ee /abs/core/python_modules/python2-backports
parentf81dbe61f4526e7de2bb957e8ad960fd38730627 (diff)
downloadlinhes_pkgbuild-701943ff7168cba6e02762c4f9762e974ad171de.zip
linhes_pkgbuild-701943ff7168cba6e02762c4f9762e974ad171de.tar.gz
linhes_pkgbuild-701943ff7168cba6e02762c4f9762e974ad171de.tar.bz2
python2-backports: 1.0
Diffstat (limited to 'abs/core/python_modules/python2-backports')
-rw-r--r--abs/core/python_modules/python2-backports/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/abs/core/python_modules/python2-backports/PKGBUILD b/abs/core/python_modules/python2-backports/PKGBUILD
new file mode 100644
index 0000000..0585c1d
--- /dev/null
+++ b/abs/core/python_modules/python2-backports/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Felix Yan <felixonmars@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"
+}