sbcl 2.1.11 rebuild
[arch-packages.git] / python2-configparser / trunk / PKGBUILD
blob7ea1b0b81d5898db7ec49867f64f4ee789f87233
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
4 pkgname=python2-configparser
5 pkgver=4.0.2
6 pkgrel=2
7 pkgdesc="This library brings the updated configparser from Python 3.5 to Python 2.6-3.5."
8 arch=('any')
9 url="https://bitbucket.org/ambv/configparser"
10 license=('MIT')
11 depends=('python2-backports')
12 makedepends=('python2-setuptools')
13 source=("https://pypi.io/packages/source/c/configparser/configparser-${pkgver}.tar.gz" license)
14 md5sums=('35926cc4b9133f1f9ca70a1fd2fdf237'
15          'f8e5b03556ed846d7681bacd4126f484')
17 prepare() {
18   sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
19     $(find "$srcdir"/configparser-${pkgver} -name '*.py')
22 build() {
23   cd configparser-$pkgver
24   python2 setup.py build
27 package() {
28   cd configparser-$pkgver
29   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
31   rm "$pkgdir"/usr/lib/python2.7/site-packages/backports/__init__.py{,c,o}
33   install -D "$srcdir"/license "$pkgdir"/usr/share/licenses/$pkgname/LICENSE