50 lines
1.2 KiB
Text
50 lines
1.2 KiB
Text
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
|
|
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
|
|
pkgname=py-configparser
|
|
_pkgname=configparser
|
|
pkgver=3.7.4
|
|
pkgrel=0
|
|
pkgdesc="This library brings the updated configparser from Python 3.5 to Python 2.6-3.5"
|
|
url="https://docs.python.org/3/library/configparser.html"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="python2-dev python3-dev py3-setuptools py2-setuptools"
|
|
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
build() {
|
|
python2 setup.py build
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python2 setup.py test
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_py2() {
|
|
replaces="$pkgname"
|
|
_py python2
|
|
}
|
|
|
|
_py3() {
|
|
_py python3
|
|
}
|
|
|
|
_py() {
|
|
local python="$1"
|
|
pkgdesc="$pkgdesc (for $python)"
|
|
depends="$depends $python"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
|
|
cd "$builddir"
|
|
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
|
}
|
|
|
|
sha512sums="205a7bc921ccfb3df5a25afaf2f5ab78d3a5a92bfd2c9c78098e8d009c1fe8d431b8bf09d2da44f7ebf172e912121619dc7bbfadc74f355133f8d32bc42a8b00 configparser-3.7.4.tar.gz"
|
|
|