Skip to content

Commit

Permalink
python-badges: initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Aug 31, 2023
1 parent edc63d5 commit e924022
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions packages/python-badges/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit e924022

Please sign in to comment.