blob: cbb922d342caea9b19b662b37003856c1d777eac (
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
|
# Maintainer: Ben Cooper <contactme@bengcooper.co.uk>
# Contributor: Johan Förberg <johan@forberg.se>
pkgname=magicq
pkgver=1.9.3.7
pkgrel=1
pkgdesc='Lighting control software from ChamSys'
arch=(x86_64)
url='https://chamsyslighting.com/products/magicq'
groups=()
options=('!strip') # Binaries are already stripped.
source=('http://files.magicq.co.uk/v1_9_3_7/magicq_ubuntu_v1_9_3_7.deb')
sha256sums=('044440c3ff5737f306efaa1c6fed6e0f74592e85c5bf62a19697e3589abf7f17')
# I've been unable to find any formal license for Magicq. The website only
# states that it's available free of charge. There don't seem to be any
# restrictions on use, except that some features are disabled unless Chamsys
# hardware is detected.
license=(unknown)
package() {
depends=(alsa-lib ffmpeg glu gst-plugins-base gst-plugins-good
libarchive libcups libusb libx11 libxcb qt5-multimedia qt5-webkit zlib)
cd "$pkgdir"
bsdtar xf "$srcdir/data.tar.xz"
# We use the system libraries instead of the bundled binaries.
rm -rf opt/magicq/lib*.so*
# 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
}
|