diff --git a/packages/python-argparse/PKGBUILD b/packages/python-argparse/PKGBUILD new file mode 100644 index 00000000000..50938597f69 --- /dev/null +++ b/packages/python-argparse/PKGBUILD @@ -0,0 +1,41 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-argparse +_pkgname=argparse +pkgver=1.4.0 +pkgrel=15 +pkgdesc='Python3 command-line parsing library.' +arch=('any') +url='https://pypi.org/project/argparse/#files' +license=('Python') +depends=('python') +makedepends=('python-build' 'python-pip' 'python-wheel') +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") +sha512sums=('9941f9d26c43169f947c9efadda6239349e1f9df80ff5fcdba3070bc7b43c43ab6bb4b7f0c7eee8e5d06231a17a7e9ee9eb73c7a9bb68ebe5d13f879686d61b2') + +build() { + cd "$_pkgname-$pkgver" + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd "$_pkgname-$pkgver" + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + $_pkgname + + install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} +