[arch-commits] Commit in python2-backports/repos (staging-any staging-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Nov 9 21:08:11 UTC 2018
Date: Friday, November 9, 2018 @ 21:08:11
Author: felixonmars
Revision: 338521
archrelease: copy trunk to staging-any
Added:
python2-backports/repos/staging-any/
python2-backports/repos/staging-any/PKGBUILD
(from rev 338520, python2-backports/trunk/PKGBUILD)
----------+
PKGBUILD | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
Copied: python2-backports/repos/staging-any/PKGBUILD (from rev 338520, python2-backports/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2018-11-09 21:08:11 UTC (rev 338521)
@@ -0,0 +1,25 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-backports
+pkgver=1.0
+pkgrel=2
+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