Created
November 4, 2015 23:02
-
-
Save kpcyrd/7770fc46c780ccb48fee to your computer and use it in GitHub Desktop.
python-argh PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Francois_B <fboulogne@sciunto.org> | |
# Contributor: kpcyrd <git@rxv.cc> | |
pkgbase=python-argh | |
pkgname=('python-argh' 'python2-argh') | |
pkgver=0.26.1 | |
pkgrel=1 | |
pkgdesc='An unobtrusive argparse wrapper with natural syntax' | |
arch=(any) | |
url='https://pypi.python.org/pypi/argh' | |
license=('LGPL3') | |
makedepends=('python-setuptools' 'python2-setuptools') | |
source=(https://pypi.python.org/packages/source/a/argh/argh-${pkgver}.tar.gz) | |
sha512sums=('8c286434b13fe72eca7c35313581921f49ab8934e0c791bd230ed775067507dc492b73b76c9ec521161395aeb8d1cfedc71e3251bba8f68d2227c3cf56c326bf' | |
'da6bcf3b76076d488f9a728debc7297b1bed6d94eb9cc44b15344c9b663a240c34434cc5511181f2a9b0e810b22449f5b13d793b7f225336f810367153bc8fd1') | |
# TODO: wget -O LICENSE.txt https://www.gnu.org/licenses/lgpl-3.0.txt | |
package_python-argh() { | |
depends=('python') | |
cd "argh-${pkgver}" | |
python setup.py install -O1 --root="${pkgdir}" | |
install -Dm 644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README" | |
} | |
package_python2-argh() { | |
depends=('python2') | |
cd "argh-${pkgver}" | |
python2 setup.py install -O1 --root="${pkgdir}" | |
install -Dm 644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment