40 lines
917 B
Text
40 lines
917 B
Text
|
# Maintainer: George Rawlinson <george@rawlinson.net.nz>
|
||
|
|
||
|
pkgname=python-decli
|
||
|
_pkgname="${pkgname#python-}"
|
||
|
pkgver=0.5.2
|
||
|
pkgrel=1
|
||
|
pkgdesc="A minimal declarative command-line interface library"
|
||
|
arch=('any')
|
||
|
url="https://github.com/Woile/decli"
|
||
|
license=('MIT')
|
||
|
depends=('python')
|
||
|
makedepends=('python-pip' 'python-poetry')
|
||
|
checkdepends=()
|
||
|
optdepends=()
|
||
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||
|
b2sums=('cc6b281e43643dc0f214223d410bc03972051244c3793500a435ea345f2b6cb28d10f6aa6db6a3dfcc69d054818361166c5f10623e091349749b14391929ee8d')
|
||
|
|
||
|
build() {
|
||
|
cd "$_pkgname-$pkgver"
|
||
|
poetry build --format wheel
|
||
|
}
|
||
|
|
||
|
#check() {
|
||
|
# cd "$_name-$pkgver"
|
||
|
#}
|
||
|
|
||
|
package() {
|
||
|
cd "$_pkgname-$pkgver"
|
||
|
|
||
|
PIP_CONFIG_FILE=/dev/null pip \
|
||
|
install \
|
||
|
--isolated \
|
||
|
--root="$pkgdir" \
|
||
|
--ignore-installed \
|
||
|
--no-deps \
|
||
|
dist/*.whl
|
||
|
|
||
|
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
||
|
}
|