desktop/python-six/PKGBUILD
2014-09-06 18:06:09 +00:00

44 lines
1.1 KiB
Bash

# Maintainer: Manuel 'UtG' <utg[dot]chakra.linux[at]gmail[dot]com>
# Contributor: Allan McRae <allan@archlinux.org>
pkgbase=python-six
pkgname=('python2-six' 'python3-six')
pkgver=1.7.3
pkgrel=1
pkgdesc="Python 2 and 3 compatibility utilities"
arch=('any')
url="http://pypi.python.org/pypi/six/"
license=('MIT')
makedepends=('python2' 'python3')
source=(http://pypi.python.org/packages/source/s/six/six-$pkgver.tar.gz)
md5sums=('784c6e5541c3c4952de9c0a966a0a80b')
build() {
cd $srcdir
cp -r six-$pkgver six2-$pkgver
}
check() {
cd $srcdir/six-$pkgver
python3 setup.py check
cd $srcdir/six2-$pkgver
python2 setup.py check
}
package_python3-six() {
depends=('python3')
cd $srcdir/six-$pkgver
python3 setup.py install --root "${pkgdir}" --optimize=1
install -Dm644 "${srcdir}/six-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_python2-six() {
depends=('python2')
cd $srcdir/six2-$pkgver
python2 setup.py install --root "${pkgdir}" --optimize=1
install -Dm644 "${srcdir}/six-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}