blob: 57fc245cba2b53417bb90dd1be049104ab99d84d (
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
|
# Maintainer: Aseem Athale <athaleaseem@gmail.com>
_base=mathparse
pkgname=python-${_base}
pkgver=0.1.5
pkgrel=3
pkgdesc="A Python library for evaluating natural language mathematical equations."
arch=('any')
url="https://github.com/gunthercox/${_base}"
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz"::${url}/archive/refs/tags/${pkgver}.tar.gz)
sha512sums=('4be787c85b92759b5efe09e089851387ee1d127b2e998ba59a65d593269af71b21cda2bb59d07816fd21e2a3be4d227a338de16d9703187d1a286fce3a49a732')
build() {
cd "${_base}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_base}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|