Skip to content

Commit

Permalink
build: update PKGBUILD (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadNews authored May 8, 2023
1 parent 571b763 commit 864d257
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,23 @@ depends=(
"python-pyperclip"
"python-requests"
)
makedepends=("python-setuptools")
makedepends=(
"python-build"
"python-installer"
"python-poetry-core"
"python-poetry-dynamic-versioning"
)
license=("MIT")
arch=("any")
source=("https://files.pythonhosted.org/packages/source/${_module::1}/${_module}/${_module}-${pkgver}.tar.gz")
sha256sums=("")

build() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py build
python -m build --wheel --no-isolation
}

package() {
depends+=()
cd "${srcdir}/${_module}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
python -m installer --destdir="${pkgdir}" dist/*.whl
}

0 comments on commit 864d257

Please sign in to comment.