[arch-commits] Commit in python2-backports/repos (2 files)
Kyle Keen
kkeen at archlinux.org
Fri Apr 22 03:27:37 UTC 2016
Date: Friday, April 22, 2016 @ 05:27:36
Author: kkeen
Revision: 171554
archrelease: copy trunk to community-any
Added:
python2-backports/repos/community-any/
python2-backports/repos/community-any/PKGBUILD
(from rev 171553, python2-backports/trunk/PKGBUILD)
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Copied: python2-backports/repos/community-any/PKGBUILD (from rev 171553, python2-backports/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2016-04-22 03:27:36 UTC (rev 171554)
@@ -0,0 +1,26 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-backports
+pkgver=1.0
+pkgrel=1
+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