jobextra/python-six/PKGBUILD

51 lines
1.4 KiB
Bash
Raw Normal View History

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgbase=python-six
pkgname=('python2-six' 'python-six')
pkgver=1.16.0
pkgrel=05
pkgdesc="Python 2 and 3 compatibility utilities"
arch=('any')
url="https://pypi.python.org/pypi/six/"
makedepends=('python-setuptools' 'python2-setuptools')
checkdepends=('python-pytest' 'tk')
source=("https://pypi.io/packages/source/s/six/six-$pkgver.tar.gz")
build() {
cp -a six-$pkgver{,-py2}
}
check() {
cd "$srcdir"/six-$pkgver
python -m pytest
}
package_python-six() {
depends=('python')
cd six-$pkgver
python setup.py install --root "$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-six() {
depends=('python2')
cd six-$pkgver-py2
python2 setup.py install --root "$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
#---- license gpg-key sha256sums ----
license=('MIT')
sha512sums=('076fe31c8f03b0b52ff44346759c7dc8317da0972403b84dfe5898179f55acdba6c78827e0f8a53ff20afe8b76432c6fe0d655a75c24259d9acbaa4d9e8015c0')
sha256sums=(1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926) # six-1.16.0.tar.gz