git » python-userpath.git » main » tree

[main] / PKGBUILD

# Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
# Maintainer: Robin Candau <antiz@archlinux.org>

_pkgname=userpath
pkgname=python-$_pkgname
pkgver=1.9.2
pkgrel=2
pkgdesc='Cross-platform tool for adding locations to the user PATH, no elevated privileges required!'
arch=('any')
url='https://github.com/ofek/userpath'
license=('MIT')
depends=('python' 'python-click' 'python-distro')
makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-wheel')
#checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('8016ae08eb01526cd256cd3bf12eedc3abcaad225570d08c8ca051657a84ee7c75d9a8a07bcf229896fd450bd3577b1d81442d9af7fe4c1061a82d0cdfbcfad3')

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

#check() {
#  cd $_pkgname-$pkgver
#  pytest
#}

package() {
  cd $_pkgname-$pkgver
  python -m installer -d "$pkgdir" dist/*.whl

  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT
}

# vim:set ts=2 sw=2 et: