* file: fix source url to be dynamic again * crypt: fix typo in prev sha256 switch commit
49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# $Id: PKGBUILD 135906 2015-06-26 14:54:21Z fyan $
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
|
|
# Contributor: Igor Ramos Tiburcio <irtigor@yahoo.com.br>
|
|
# Contributor: Wieland Hoffmann <themineo+aur@gmail.com>
|
|
# Contributor: Hervé Cauwelier <herve ¤ oursours.net>
|
|
# Contributor: Felix Kaiser <felix.kaiser@fxkr.net>
|
|
|
|
pkgbase=python-py
|
|
pkgname=('python3-py' 'python2-py')
|
|
pkgver=1.4.30
|
|
pkgrel=1
|
|
pkgdesc="library with cross-python path, ini-parsing, io, code, log facilities"
|
|
arch=('any')
|
|
license=('MIT')
|
|
url="https://pylib.readthedocs.org/"
|
|
makedepends=('python3-setuptools' 'python2-setuptools')
|
|
source=("https://pypi.python.org/packages/source/p/py/py-$pkgver.tar.gz")
|
|
sha512sums=('dd9d92f8eaf8e5fc61bfb7feb4b07df5ae1745ebf88bcbe9d62589caa9e1f7d8beae5b2d20b407520919e47391cd50cf2d5323556fa5bd90a37e120b1d394d7a')
|
|
|
|
prepare() {
|
|
cp -a py-${pkgver}{,-py2}
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/py-${pkgver}"
|
|
python3 setup.py build
|
|
|
|
cd "$srcdir/py-${pkgver}-py2"
|
|
python2 setup.py build
|
|
}
|
|
|
|
package_python3-py() {
|
|
depends=('python3')
|
|
|
|
cd py-${pkgver}
|
|
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"
|
|
}
|
|
|