archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python2-backports / repos / extra-any / PKGBUILD
blob0585c1d88bf1a814e6123887355dbdbcffbbf3e0
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python2-backports
4 pkgver=1.0
5 pkgrel=3
6 pkgdesc="Namespace package required for backports collection"
7 arch=('any')
8 url="https://pypi.python.org/pypi/backports"
9 license=('PSF')
10 depends=('python2')
12 build() {
13   cd "$srcdir"
14   cat << EOF > __init__.py
15 from pkgutil import extend_path
16 __path__ = extend_path(__path__, __name__)
17 EOF
18   python2 -m compileall .
21 package() {
22   cd "$srcdir"
23   install -Dm644 __init__.py  "$pkgdir/usr/lib/python2.7/site-packages/backports/__init__.py"
24   install -Dm644 __init__.pyc "$pkgdir/usr/lib/python2.7/site-packages/backports/__init__.pyc"