blob: 6334ef62e71162d5cd95ddb130a64b63ec4f771b (
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
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
_upstreamver='0.2.6'
_upstreamver_regex='^[0-9]+\.[0-9]+\.[0-9]+$'
_source_type='pypi-releases'
_pypi_package='ensurepath'
pkgname="python-${_pypi_package}"
pkgver="${_upstreamver}"
pkgrel=1
pkgdesc="Ensure python, pip and with pip installed binarys (scripts for win) are in your PATH variable"
arch=('any')
url='https://github.com/knoxell/ensurepath'
license=('Unlicense')
depends=('python' 'python-userpath')
makedepends=('python-setuptools' 'python-wheel' 'python-build' 'python-installer')
source=("https://files.pythonhosted.org/packages/source/${_pypi_package::1}/${_pypi_package//-/_}/${_pypi_package//-/_}-${pkgver}.tar.gz")
sha256sums=('6c4405842a864b8721ff975546c493ce8fb42d49abf5aff88bcc273f2f9810e7')
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 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|