blob: 3b4ac2dce07fe96ce32b43f8f10855208f37ec5f (
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
|
# Maintainer: Andreas Kling <arch@akling.org>
# Contributor: Ben Cooper <contactme@bengcooper.co.uk>
# Contributor: Johan Förberg <johan@forberg.se>
pkgname=magicq-beta
pkgver=1.9.6.3
pkgrel=1
pkgdesc='Lighting control software from ChamSys'
arch=(x86_64)
url='https://chamsyslighting.com/products/magicq'
license=(custom)
groups=()
conflicts=(magicq)
options=('!strip') # Binaries are already stripped.
_pkgver="${pkgver//[^[:alnum:]]/_}"
source=("http://files.magicq.co.uk/v${_pkgver}/magicq_ubuntu_v${_pkgver}.deb")
sha256sums=('2290c1071c42bce891aee1a82fa437f01a824ab33b9eddad6deb020a781d7149')
package() {
depends=(
alsa-lib
jack
gst-plugins-base
gst-plugins-good
libcups
libgl
libx11
libxcb
udev
zlib
)
cd "$pkgdir"
bsdtar xf "$srcdir/data.tar.xz"
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
ln -s /opt/magicq/License_Conditions.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# We use the system libraries instead of the bundled binaries:
# https://secure.chamsys.co.uk/help/documentation/magicq/troubleshooting.html#_linux_magicq_fails_to_start_libgl_error
rm -rf opt/magicq/lib/libstdc++.so.6
# There are different JACK implementations, their client libraries and daemons are not compatibible with each other
rm -rf opt/magicq/lib/libjack.so.0
# Magicq expects to be able to write these directories.
# The directory list comes from the debian package postinst.
chmod 777 opt/magicq
for dir in log show web thumbs backuparchive convert audio; do
mkdir -p "opt/magicq/$dir"
chmod -R 777 "opt/magicq/$dir"
done
# Fix permissions from .deb file.
find usr etc -type f -exec chmod 644 {} + , -type d -exec chmod 755 {} +
mkdir -p usr/bin
ln -s /opt/magicq/runmagicq.sh usr/bin/magicq
ln -s /opt/magicq/runmagichd.sh usr/bin/magichd
ln -s /opt/magicq/runmagicvis.sh usr/bin/magicvis
}
|