mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
58 lines
1.4 KiB
Bash
58 lines
1.4 KiB
Bash
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
|
# Contributor: aur2ccr (http://ddg.gg/?q=!ccr+aur2ccr)
|
|
# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
|
|
# Contributor: Igor Ramos Tiburcio <irtigor@yahoo.com.br>
|
|
|
|
pkgbase=python-py
|
|
pkgname=('python2-py' 'python3-py')
|
|
pkgver=1.4.20
|
|
pkgrel=2
|
|
pkgdesc="Python rapid development tools"
|
|
arch=('x86_64')
|
|
url="http://pylib.readthedocs.org/en/latest/"
|
|
license=('MIT')
|
|
makedepends=("python2-setuptools" "python3-setuptools" )
|
|
checkdepends=('python2-pytest' 'python3-pytest')
|
|
source=("http://pypi.python.org/packages/source/p/py/py-$pkgver.tar.gz")
|
|
md5sums=('5f1708be5482f3ff6711dfd6cafd45e0')
|
|
|
|
|
|
prepare() {
|
|
cp -r py-${pkgver}{,-py3}
|
|
cp -r py-${pkgver}{,-py2}
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/py-${pkgver}-py3"
|
|
python3 setup.py build
|
|
|
|
cd "$srcdir/py-${pkgver}-py2"
|
|
python2 setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir/py-${pkgver}-py3"
|
|
LANG=en_US.utf8 py.test
|
|
|
|
cd "$srcdir/py-${pkgver}-py2"
|
|
LANG=en_US.utf8 py.test2
|
|
### check RESULT (2014/04/18): 550 passed, 202 skipped, 3 xfailed ##
|
|
}
|
|
|
|
package_python3-py() {
|
|
depends=('python3')
|
|
|
|
cd py-${pkgver}-py3
|
|
python3 setup.py install --root="${pkgdir}" --optimize=1
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|
|
|
|
package_python2-py() {
|
|
depends=('python2')
|
|
|
|
cd py-${pkgver}-py2
|
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|
|
|