summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cffec68ed3729226dd0ebdea2f6bad14f43f47bd (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
pkgname='pip2pkgbuild'
_module='pip2pkgbuild'
_src_folder='pip2pkgbuild-0.3.9'
pkgver='0.3.9'
pkgrel=1
pkgdesc="Generate PKGBUILD file for a Python module from PyPI"
url="https://github.com/wenLiangcan/pip2pkgbuild"
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/9e/df/2216a70204e6e4a4aff6a709361816f5510eb211f96a21ae9bb30a1d3f9d/pip2pkgbuild-0.3.9.tar.gz")
sha256sums=('0d88cac992472bf51505744db15cfd39dc7492e2ba2780fc04debe9c47084451')

build() {
    cd "${srcdir}/${_src_folder}"
    python -m build --wheel --no-isolation
}

package() {
    depends+=()
    cd "${srcdir}/${_src_folder}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}