blob: 75e2332302151143f214325a1780cc4c9747feae (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
|
# Maintainer: Frédéric Bogaerts <fred@netpack.pt>
pkgname=xfb
# pacman compares the dot-separated segments as integers, not as decimals, so
# 3.14159 outranks 3.1416 (14159 > 1416) and every rounded release looks like a
# downgrade. The epoch overrides that comparison. It must never be removed or
# lowered: dropping it would make the next release look older than this one to
# every machine that installed it. Raise it only if the version ever has to go
# backwards again.
epoch=1
pkgver=4.02
pkgrel=1
pkgdesc="Open-source Radio Automation with comprehensive accessibility support"
arch=('x86_64' 'aarch64')
url="https://github.com/netpack/XFB"
license=('GPL3')
depends=(
'qt6-base'
'qt6-multimedia'
'qt6-webengine'
'qt6-declarative'
'at-spi2-core'
'speech-dispatcher'
'alsa-lib'
'libpulse'
'sqlite'
'curl'
'gstreamer'
'gst-plugins-base'
'gst-plugins-good'
'perl-image-exiftool'
'ffmpeg'
)
makedepends=(
'cmake'
'git'
'pkg-config'
)
install=xfb.install
optdepends=(
'orca: Screen reader support for visually impaired users'
'brltty: Braille display support'
'espeak-ng: Text-to-speech synthesis'
'audacity: Advanced audio editing'
'mediainfo: Track metadata lookups'
'mplayer: Media player'
'soundconverter: Audio converter'
'yt-dlp: Download media from online sources'
'lame: MP3 encoding'
'sox: Audio processing'
'flac: FLAC audio support'
'vorbis-tools: OGG Vorbis support'
'mp3gain: MP3 volume normalization'
'normalize: Audio normalization'
'wavpack: WavPack audio support'
'opus-tools: Opus audio support'
'mediainfo: Media file information'
)
# The companion APK comes from the release rather than the tag: it is a build
# product of the Android toolchain, signed with a key that is not in the
# repository, so it is never committed. sha256 is the released file's own --
# see android/RELEASING.md, which prints it.
source=("git+https://github.com/netpack/XFB.git#tag=v${pkgver}"
"xfb-companion-${pkgver}.apk::https://github.com/netpack/XFB/releases/download/v${pkgver}/xfb-companion.apk"
"xfb-companion-${pkgver}.json::https://github.com/netpack/XFB/releases/download/v${pkgver}/xfb-companion.json")
sha256sums=('SKIP'
'1e4188e07e2f9d1ba82a2fb4469d434892acd68426fe1e3d6c94bd37800b9ed3'
'b7136bc77a53e199c215437ca1e0dc4825ad34c94ea40157f20e9a74d50dd27b')
build() {
cd "$srcdir/XFB"
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCPACK_GENERATOR="" \
-DBUILD_TESTING=OFF
cmake --build build
}
package() {
cd "$srcdir/XFB"
# Create necessary directories
install -d "$pkgdir/usr/bin"
install -d "$pkgdir/etc/xfb"
install -d "$pkgdir/usr/share/xfb"
install -d "$pkgdir/usr/share/xfb/bin"
install -d "$pkgdir/usr/share/xfb/config"
install -d "$pkgdir/usr/share/xfb/scripts"
install -d "$pkgdir/usr/share/xfb/jingles"
install -d "$pkgdir/usr/share/xfb/music"
install -d "$pkgdir/usr/share/xfb/playlists"
install -d "$pkgdir/usr/share/xfb/recordings"
install -d "$pkgdir/usr/share/xfb/tmp"
install -d "$pkgdir/usr/share/xfb/ftp"
install -d "$pkgdir/usr/share/applications"
install -d "$pkgdir/usr/share/pixmaps"
# Install the main executable
install -Dm755 "build/bin/XFB" "$pkgdir/usr/share/xfb/bin/XFB"
# Create symbolic link in /usr/bin
ln -s "/usr/share/xfb/bin/XFB" "$pkgdir/usr/bin/XFB"
# Install desktop file
install -Dm644 "XFB.desktop" "$pkgdir/usr/share/applications/XFB.desktop"
# Install icons. The hicolor set (preferred by modern desktops) and the
# pixmaps fallback both come from XFB.iconset / the SVG source, whose
# backgrounds are transparent (the root xfb_icon.png was flattened onto
# white in tags up to v3.14159; the iconset is also the crisper source).
install -Dm644 "XFB.iconset/icon_16x16.png" "$pkgdir/usr/share/icons/hicolor/16x16/apps/xfb_icon.png"
install -Dm644 "XFB.iconset/icon_32x32.png" "$pkgdir/usr/share/icons/hicolor/32x32/apps/xfb_icon.png"
install -Dm644 "XFB.iconset/icon_32x32@2x.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps/xfb_icon.png"
install -Dm644 "XFB.iconset/icon_128x128.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/xfb_icon.png"
install -Dm644 "XFB.iconset/icon_256x256.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/xfb_icon.png"
install -Dm644 "XFB.iconset/icon_512x512.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/xfb_icon.png"
install -Dm644 "xfb_icon.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/xfb_icon.svg"
install -Dm644 "XFB.iconset/icon_128x128.png" "$pkgdir/usr/share/pixmaps/xfb_icon.png"
# Install config files
if [ -d "config" ]; then
install -m644 config/* "$pkgdir/usr/share/xfb/config/" 2>/dev/null || true
# Copy config to /etc/xfb if xfb.conf exists
if [ -f "config/xfb.conf" ]; then
install -m644 "config/xfb.conf" "$pkgdir/etc/xfb/"
fi
fi
# Install the phone app. XFB serves this to phones itself, and
# /usr/share/xfb is the last path MobileSyncServer::companionApkPath()
# tries. Both files or neither: without the sidecar the APK is offered as a
# download but never recognised as an update.
if [ -f "$srcdir/xfb-companion-${pkgver}.apk" ]; then
install -Dm644 "$srcdir/xfb-companion-${pkgver}.apk" \
"$pkgdir/usr/share/xfb/xfb-companion.apk"
install -Dm644 "$srcdir/xfb-companion-${pkgver}.json" \
"$pkgdir/usr/share/xfb/xfb-companion.json"
fi
# Install the server-sync script templates (executable: legacy call
# sites exec the extensionless ones directly)
if [ -d "scripts" ]; then
install -m755 scripts/serverFtpCmds* "$pkgdir/usr/share/xfb/scripts/" 2>/dev/null || true
fi
# Install additional directories
if [ -d "ftp" ]; then
cp -r ftp/* "$pkgdir/usr/share/xfb/ftp/" 2>/dev/null || true
fi
if [ -d "jingles" ]; then
cp -r jingles/* "$pkgdir/usr/share/xfb/jingles/" 2>/dev/null || true
fi
if [ -d "music" ]; then
cp -r music/* "$pkgdir/usr/share/xfb/music/" 2>/dev/null || true
fi
if [ -d "playlists" ]; then
cp -r playlists/* "$pkgdir/usr/share/xfb/playlists/" 2>/dev/null || true
fi
# Install documentation
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
# Install accessibility documentation
if [ -d "docs/accessibility" ]; then
cp -r "docs/accessibility" "$pkgdir/usr/share/doc/$pkgname/"
fi
# Set correct permissions on database if it exists
if [ -f "$pkgdir/usr/share/xfb/config/adb.db" ]; then
chmod +x "$pkgdir/usr/share/xfb/config/adb.db"
fi
echo "Installation of XFB completed successfully!"
echo "The configuration file is: /etc/xfb/xfb.conf"
echo "The shared folders are under: /usr/share/xfb"
echo "You may want to install yt-dlp for downloading media"
echo ""
echo "New in v4.02:"
echo " - MIDI learn: tie the faders, buttons and jog wheels of a MIDI"
echo " controller to the station's transport, the decks and the pads"
echo " - A tempo fader on each DJ deck, with nudge buttons and Sync to"
echo " match one deck's BPM to the other's"
echo " - Crossfades no longer open a gap where the outgoing track ends:"
echo " the join lands on the sample auto-mix measured"
echo " - Options > Mixing can mix every transition inside XFB's own"
echo " audio engine (on by default on Windows)"
echo " - Portuguese and French for all of the above"
echo ""
echo "Can you share some ETH? 0x9700225FcD115230C9166BD68CEdc23e329D3CdF"
echo "Thank you for installing XFB! Made with love & linux!"
}
|