blob: b501931cb535215e55c82c82006f9bf5bacd118e (
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
71
72
73
74
75
|
# Maintainer: Karl Ljungkvist <k[dot]ljungkvist[at]gmail[dot]com>
# Contributor: Gobidev <adrian[dot]groh[at]t-online[dot]de>
# Contributor: Dominik Schrempf <dominik dot schrempf at gmail dot com>
# Contributor: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d)
pkgname=transcribe
pkgver=9.41.2
pkgrel=1
pkgdesc="music transcription aid"
arch=('x86_64')
url="https://www.seventhstring.com/xscribe/overview.html"
license=('unknown')
depends=('libsm' 'gtk3' 'gst-plugins-base-libs')
source=("https://www.seventhstring.com/xscribe/downlo/xscsetup-${pkgver}.tar.gz")
sha256sums=('ce62d19a5b1e5126af81baf326d8fade6bc664e20f74731b4882388eacbc0c41')
package() {
cd "$srcdir/$pkgname"
# Executable.
install -Dm0755 "$pkgname" "$pkgdir/usr/lib/$pkgname/$pkgname"
mkdir -p "$pkgdir/usr/bin"
ln -s /usr/lib/$pkgname/$pkgname "$pkgdir/usr/bin/$pkgname"
# Documentation.
install "xschelp.htb" "$pkgdir/usr/lib/$pkgname/"
# Library.
lib="libgstvideosection.so"
if [ -e "$lib" ]; then
install -Dm0755 "$lib" "$pkgdir/usr/lib/gstreamer-1.0/$lib"
fi
# Icons.
for icon in gtkicons/xsc*png
do
unprefixed=${icon#*xsc}
size=${unprefixed%.png}
install -Dm0644 $icon "$pkgdir/usr/share/icons/hicolor/${size}/apps/seventhstring-transcribe.png"
done
# Mime type with icon.
mime_file=seventhstring-transcribe.xml
cat <<"-EOF-" > $mime_file
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/seventhstring-transcribe">
<comment>Transcribe! File</comment>
<glob pattern="*.xsc"/>
<icon name="seventhstring-transcribe"/>
</mime-type>
</mime-info>
-EOF-
install -Dm0644 $mime_file "$pkgdir/usr/share/mime/packages/$mime_file"
# Application .desktop file.
desktop_file=seventhstring-transcribe.desktop
cat << -EOF- > $desktop_file
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
MimeType=application/seventhstring-transcribe;
Exec=transcribe %f
Categories=Audio;
Terminal=false
Icon=seventhstring-transcribe
Name=Transcribe!
-EOF-
install -Dm0644 $desktop_file "$pkgdir/usr/share/applications/$desktop_file"
}
# vim:set ts=2 sw=2 et:
|