Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
translate-toolkit


Commits:
3a5f04e9 by Rafael Fontenelle at 2024-04-11T12:06:05-03:00
Use SPDX license

- - - - -
3a7d69c1 by Rafael Fontenelle at 2024-04-11T12:07:13-03:00
Add more optdepends, reported by pytest

- - - - -
c4710db0 by Rafael Fontenelle at 2024-04-11T12:09:07-03:00
Add translate/share to package

Required for poterminology

- - - - -
1c84c3c1 by Rafael Fontenelle at 2024-04-11T12:10:26-03:00
Use PEP 517

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -9,23 +9,30 @@ pkgrel=2
 pkgdesc="A toolkit to convert between various different translation formats, 
help process and validate localisations"
 arch=('any')
 url="https://toolkit.translatehouse.org/";
-license=('GPL')
+license=('GPL-2.0-or-later')
 depends=('bash' 'python-lxml' 'python-ruamel-yaml')
-makedepends=('python-setuptools')
+makedepends=('python-setuptools-scm' 'python-build' 'python-installer' 
'python-wheel')
 optdepends=('gaupol: for po2sub'
             'python-chardet: encoding detector'
+            'python-cheroot: for TM Server'
             'python-levenshtein: faster matching'
-            'python-cheroot: for TM Server')
+            'python-mistletoe: Markdown support for po2md'
+            'python-pyenchant: for spellcheck filter'
+            'python-pyparsing: RC support for po2rc'
+            'python-vobject: iCalendar files support for po2ical')
 
source=($pkgname-$pkgver.tar.gz::https://github.com/translate/translate/archive/$pkgver.tar.gz)
 sha256sums=('c6dcfd7f9177961b38e1a06e03722aab32a91f58d9efe7638af308f249b73509')
 
-package() {
+build() {
   cd translate-$pkgver
-
   # FS#70224 to fix reproducible build
   export PYTHONHASHSEED=0
+  python -m build --wheel --no-isolation
+}
 
+package() {
+  cd translate-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
   local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
-  python -s setup.py install --root="${pkgdir}" --optimize=1
-  python -m compileall "${pkgdir}"/${_site-packages}/translate
+  cp -a translate/share "$pkgdir/$site_packages/translate"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/translate-toolkit/-/compare/1bc90365f9085d5c19556e729a78e7f2b052593c...1c84c3c180be55dd7ab326b4168260428b7b910f

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/translate-toolkit/-/compare/1bc90365f9085d5c19556e729a78e7f2b052593c...1c84c3c180be55dd7ab326b4168260428b7b910f
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to