summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f75ba61e6a1dd30bc0d587ec851da360866b5b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: loathingkernel <username at gmail dot com>

pkgname=python-text2digits
_pyname=${pkgname#python-}
pkgver=0.1.0
pkgrel=4
pkgdesc='A small library to convert text numbers to digits in a string'
arch=(x86_64)
url="https://github.com/ShailChoksi/$_pyname"
license=(MIT)
depends=(python)
makedepends=(python-{build,installer,wheel}
             python-setuptools-scm)
_archive="$_pyname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
sha256sums=('a01d8dc8d57179d888ba589df40e02730f3bf2dd892ab22c37538e4799728bb2')

build() {
	cd "$_archive"
	python -m build -wn
}

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