diff options
author | Birk Birkner | 2023-10-20 12:43:03 +0200 |
---|---|---|
committer | Birk Birkner | 2024-02-06 00:37:27 +0100 |
commit | 68fd166c97ef64588f848d741f4e034dd2b7dea8 (patch) | |
tree | 34754ad1138f35cc3f2baec0e5f96f003790a202 | |
parent | 99723a2eb2348f04885446d4f8f86c026d072a77 (diff) | |
download | aur-frescobaldi-git.tar.gz |
Update build to PEP517
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 27 insertions, 36 deletions
@@ -1,12 +1,17 @@ pkgbase = frescobaldi-git pkgdesc = A LilyPond sheet music text editor. - pkgver = 3.1.2.r83.g79b04e50 + pkgver = 3.3.0.r90.g1910c87c pkgrel = 1 url = http://www.frescobaldi.org/ arch = any license = GPL makedepends = git + makedepends = python-build makedepends = python-setuptools + makedepends = python-installer + makedepends = python-wheel + makedepends = python-tox + makedepends = desktop-file-utils depends = hyphen depends = poppler depends = python>=3.3 @@ -15,25 +20,15 @@ pkgbase = frescobaldi-git depends = python-pyqt5>=5.9 depends = python-pyqt5-webengine>=5.9 depends = python-pyqt5-sip>=5.9 - depends = qpageview + depends = python-qpageview depends = qt5-base>=5.9 depends = qt5-svg>=5.9 - depends = qt5-webkit>=5.9 depends = hicolor-icon-theme - depends = tango-icon-theme optdepends = lilypond: Music engraving (recommended) optdepends = python-pygame: MIDI playback (alternate engine) - optdepends = portmidi: MIDI playback (fallback engine) - optdepends = hyphen-de: German hyphenation rules - optdepends = hyphen-en: English hyphenation rules - optdepends = hyphen-es: Spanish hyphenation rules - optdepends = hyphen-fr: French hyphenation rules - optdepends = hyphen-hu: Hungarian hyphenation rules - optdepends = hyphen-it: Italian hyphenation rules - optdepends = hyphen-nl: Dutch hyphenation rules - optdepends = hyphen-ro: Romanian hyphenation rules + optdepends = hyphen-lang: hyphenation patterns for desired languages optdepends = python-pycups: Printing to a local CUPS server - provides = frescobaldi=3.1.2.r83.g79b04e50-1 + provides = frescobaldi=3.3.0.r90.g1910c87c-1 conflicts = frescobaldi source = frescobaldi-git::git+https://github.com/frescobaldi/frescobaldi.git md5sums = SKIP @@ -1,7 +1,8 @@ -# Maintainer: Raphaël Doursenaud <rdoursenaud@free.fr> +# Maintainer: Birk Birkner <aur at bbirkner.de> +# Contributor: Raphaël Doursenaud <rdoursenaud@free.fr> pkgname=frescobaldi-git -pkgver=3.1.2.r83.g79b04e50 +pkgver=3.3.0.r90.g1910c87c pkgrel=1 pkgdesc="A LilyPond sheet music text editor." arch=('any') @@ -9,7 +10,12 @@ url="http://www.frescobaldi.org/" license=('GPL') makedepends=( 'git' + 'python-build' 'python-setuptools' + 'python-installer' + 'python-wheel' + 'python-tox' + 'desktop-file-utils' ) depends=( 'hyphen' @@ -20,27 +26,15 @@ depends=( 'python-pyqt5>=5.9' 'python-pyqt5-webengine>=5.9' 'python-pyqt5-sip>=5.9' - 'qpageview' + 'python-qpageview' 'qt5-base>=5.9' 'qt5-svg>=5.9' - 'qt5-webkit>=5.9' 'hicolor-icon-theme' - 'tango-icon-theme' ) optdepends=( 'lilypond: Music engraving (recommended)' -# python-portmidi is currently a python2 package -# 'python-portmidi: MIDI playback (default engine)' 'python-pygame: MIDI playback (alternate engine)' - 'portmidi: MIDI playback (fallback engine)' - 'hyphen-de: German hyphenation rules' - 'hyphen-en: English hyphenation rules' - 'hyphen-es: Spanish hyphenation rules' - 'hyphen-fr: French hyphenation rules' - 'hyphen-hu: Hungarian hyphenation rules' - 'hyphen-it: Italian hyphenation rules' - 'hyphen-nl: Dutch hyphenation rules' - 'hyphen-ro: Romanian hyphenation rules' + 'hyphen-lang: hyphenation patterns for desired languages' 'python-pycups: Printing to a local CUPS server' ) provides=("${pkgname%-git}=$pkgver-$pkgrel") @@ -50,13 +44,14 @@ md5sums=('SKIP') pkgver() { cd "${srcdir}/${pkgname}" - git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + #printf "%s.r%s.%s" "$(awk '/^version / {gsub(/"/,""); print $3}' frescobaldi_app/appinfo.py)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "${srcdir}/${pkgname}" - # Provided by tango-icon-theme - rm -rf "frescobaldi_app/icons/Tango" + tox -e mo-generate + tox -e linux-generate # Provided by hyphen-* rm -f frescobaldi_app/hyphdicts/hyph_*.dic rm -f frescobaldi_app/hyphdicts/README* @@ -64,13 +59,14 @@ prepare() { build() { cd "${srcdir}/${pkgname}" - make -C i18n - make -C linux + python -m build --wheel --no-isolation } package() { cd "${srcdir}/${pkgname}" - python setup.py install --root="${pkgdir}/" --optimize=1 + python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm644 frescobaldi_app/icons/org.frescobaldi.Frescobaldi.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/org.frescobaldi.Frescobaldi.svg + desktop-file-install --dir $pkgdir/usr/share/applications/ --set-icon /usr/share/icons/hicolor/scalable/apps/org.frescobaldi.Frescobaldi.svg linux/org.frescobaldi.Frescobaldi.desktop } # vim:set ts=2 sw=2 et: |