desktop/python2-backports/PKGBUILD

26 lines
635 B
Bash

# Contributor: Felix Yan <felixonmars@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"
}