Skip to content

Commit

Permalink
pispy-git: init at 0.7.0.r0.g33f063e
Browse files Browse the repository at this point in the history
  • Loading branch information
RiverOnVenus committed Apr 22, 2024
1 parent 090e25d commit cba2df6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pispy-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Maintainer: RiverOnVenus <[email protected]>
pkgname=pispy-git
pkgver=0.7.0.r0.g33f063e
pkgrel=1
pkgdesc='A terminal-based tool for looking up stuff in PyPI'
url="https://github.com/davep/pispy"
arch=('any')
license=('GPL-3.0-only')
depends=('python' 'python-httpx' 'python-textual' 'python-typing_extensions' 'python-packaging' 'python-linkify-it-py')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
provides=('pispy')
conflicts=('pispy')
source=("$pkgname"::"git+${url}")
sha256sums=('SKIP')

pkgver() {
cd $pkgname
git describe --long --tags --abbrev=7 | sed 's/^v//;s/-/.r/;s/-/./'
}

prepare(){
cd $pkgname
git clean -dfx
}

build() {
cd $pkgname
python -m build --wheel --no-isolation
}

package() {
cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

0 comments on commit cba2df6

Please sign in to comment.