blob: fb76a46a3ebc53fb5638cf4cc9e9f134d3d0a415 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Berrit Birkner <aur at bbirkner.de>
# Contributor: Raphaƫl Doursenaud <rdoursenaud@free.fr>
pkgname=frescobaldi-git
pkgver=4.0.0.r5.g3746515f
pkgrel=1
pkgdesc="A LilyPond sheet music text editor."
arch=('any')
url="http://www.frescobaldi.org/"
license=('GPL-2.0-or-later')
makedepends=(
'git'
'python-build'
'python-setuptools'
'python-installer'
'python-wheel'
'python-tox'
'desktop-file-utils'
'gettext'
)
depends=(
'hyphen'
'python'
'python-ly'
'python-pyqt6'
'python-pyqt6-webengine'
'python-qpageview'
'qt6-base'
'qt6-svg'
'hicolor-icon-theme'
)
optdepends=(
'lilypond: Music engraving (recommended)'
'python-pygame: MIDI playback (alternate engine)'
'hyphen-lang: hyphenation patterns for desired languages'
'python-pycups: Printing to a local CUPS server'
)
provides=("${pkgname%-git}=$pkgver-$pkgrel")
conflicts=("${pkgname%-git}")
source=("${pkgname}"::'git+https://github.com/frescobaldi/frescobaldi.git')
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
#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}"
tox -e mo-generate
tox -e linux-generate
# Provided by hyphen-*
rm -f frescobaldi/hyphdicts/hyph_*.dic
rm -f frescobaldi/hyphdicts/README*
}
build() {
cd "${srcdir}/${pkgname}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -vDm644 frescobaldi/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:
|