Skip to content
Snippets Groups Projects
Commit f7703cd2 authored by alice's avatar alice Committed by alice
Browse files

community/py3-pyphen: build with py3-build

parent 57219f23
No related branches found
No related tags found
1 merge request!32896community/py3-pyphen: build with py3-build
Pipeline #117582 canceled
......@@ -3,13 +3,13 @@
pkgname=py3-pyphen
_pkgname=Pyphen
pkgver=0.12.0
pkgrel=1
pkgrel=2
pkgdesc="python-based dictionary hyphenator library"
url="https://www.pyphen.org"
arch="noarch"
license="GPL-2.0-or-later AND LGPL-2.1-or-later AND MPL-1.1"
depends="python3"
makedepends="py3-pip pyproject2setuppy"
makedepends="py3-build py3-flit py3-installer py3-wheel"
checkdepends="py3-pytest py3-pytest-cov py3-pytest-isort py3-pytest-flake8"
source="$_pkgname-$pkgver.tar.gz::https://github.com/Kozea/Pyphen/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
......@@ -18,7 +18,7 @@ replaces="py-pyphen" # Backwards compatibility
provides="py-pyphen=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 -m pyproject2setuppy.main build
python3 -m build --no-isolation --wheel
}
check() {
......@@ -26,8 +26,8 @@ check() {
}
package() {
python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir"
cp -R pyphen/dictionaries "$pkgdir"/usr/lib/python3.*/site-packages/pyphen/
python3 -m installer -d "$pkgdir" \
dist/pyphen-$pkgver-py3-none-any.whl
}
sha512sums="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment