blob: 6e76fa0d2ba48ac48b0482d7b2ed20f71826b224 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
_upstreamver='0.8'
_upstreamver_regex='^[0-9]+\.[0-9]+\.[0-9]+$'
_source_type='pypi-releases'
_pypi_package='xnum'
pkgname="python-${_pypi_package}"
pkgver="${_upstreamver}"
pkgrel=1
pkgdesc="Simple and lightweight Python library that helps you convert digits between different numeral systems"
arch=('any')
url='https://github.com/openscilab/xnum'
license=('MIT')
depends=('python')
optdepends=()
makedepends=('python-setuptools' 'python-wheel' 'python-build' 'python-installer')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('0dfd8ffc38ddd65d0ebdc9c20304d9f3955f4f5f19bda3a52f224be37e609ee6')
build() {
cd "${srcdir}/${_pypi_package//-/_}-${pkgver}/"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pypi_package//-/_}-${pkgver}/"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "AUTHORS.md" "${pkgdir}/usr/share/doc/${pkgname}/AUTHORS.md"
install -Dm644 "SECURITY.md" "${pkgdir}/usr/share/doc/${pkgname}/SECURITY.md"
install -Dm644 "CHANGELOG.md" "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG.md"
}
|