blob: 061616509f77279f12a0e3cd63fb8439a22179af (
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
|
# Maintainer: Raphael Emberger(raember) <raphael.emberger@hotmail.ch>
# Contributor: Hervé Bitteur <herve.bitteur@audiveris.com>
# Contributor: Beat Jäckle <beat@git.jdmweb2.ch>
_pkgname=audiveris
pkgname="${_pkgname}-git"
pkgver=5.2.5.r290.g9e63f8c
_tag=5.3.1
_name="${_pkgname}-${pkgver/_/-}"
pkgrel=1
pkgdesc="Music score OMR engine - current"
arch=('any')
url="https://github.com/Audiveris/$_pkgname"
license=('AGPL3')
depends=(
'java-runtime>=17'
'tesseract'
'freetype2'
'hicolor-icon-theme'
)
makedepends=(
'java-environment>=17'
'gradle'
'git'
)
optdepends=(
'tesseract-data: For languages other than english'
'audiveris-doc: Documentation for Audiveris'
)
conflicts=("$_pkgname")
source=(
"$_name::git+$url.git"
"$_pkgname"
"$_pkgname.desktop"
)
sha256sums=(
'SKIP'
'12223d402f4f6719051df7ab4776a82c7326c41f49403d4d1868c5b041678743'
'a3c48eeac63cfdf0b0e3fdf788d48d51d4bc32291fdeb159c2244178604a28aa'
)
pkgver() {
cd "$_name"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${_name}"
# Failing tests are not our concern. Ignore them.
sed 's/src\/test/src\/main/' -i build.gradle
gradle build jar
}
package() {
# Extracting libraries
install -dm755 "$pkgdir/usr/share/java/$_pkgname"
bsdtar -C "$pkgdir/usr/share/java/$_pkgname" --strip-components=2 \
-xf "$srcdir/$_name/build/distributions/Audiveris-${_tag}.tar" \
Audiveris-${_tag}/lib/*
# Creating starter script
install -Dm755 "$srcdir/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
# Install desktopfile
install -Dm755 "$srcdir/$_name/res/icon-256.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.png"
install -Dm755 "$srcdir/$_name/res/icon-64.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps/$pkgname.png"
install -Dm755 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
}
|