From e924022fd973fbc8a94eee54f6325e1e304cd4fc Mon Sep 17 00:00:00 2001 From: Levon 'noptrix' Kayan Date: Thu, 31 Aug 2023 21:09:03 +0200 Subject: [PATCH] python-badges: initial commit. --- packages/python-badges/PKGBUILD | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 packages/python-badges/PKGBUILD diff --git a/packages/python-badges/PKGBUILD b/packages/python-badges/PKGBUILD new file mode 100644 index 00000000000..8d07715b7f6 --- /dev/null +++ b/packages/python-badges/PKGBUILD @@ -0,0 +1,39 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-badges +_pkgname=badges +pkgver=0.0.1 +pkgrel=1 +pkgdesc='Badge image class.' +arch=('any') +url='https://pypi.org/project/badges/#files' +license=('BSD') +depends=('python') +makedepends=('python-build' 'python-pip' 'python-wheel') +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") +sha512sums=('9c84ff204cef346e5111cc81d60bef3f551bc0404f59792d5ade0d4ed3749307384e261d5216ee62b444e8b420c92d75fdcd0e9305b87cba82a198081cb3524c') + +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 +} +