Skip to content

Commit

Permalink
python-argparse: initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Sep 3, 2023
1 parent fe4c6c3 commit 9f7ad71
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions packages/python-argparse/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 9f7ad71

Please sign in to comment.