blob: 0f3a84904d7a88e7482f10a25abfef8ac3788659 (
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
|
# Maintainer: Ben Cooper <contactme@bengcooper.co.uk>
# Contributor: Johan Förberg <johan@forberg.se>
pkgname=magicq
pkgver=1.9.5.5
pkgrel=1
pkgdesc='Lighting control software from ChamSys'
arch=(x86_64)
url='https://chamsyslighting.com/products/magicq'
groups=()
options=('!strip') # Binaries are already stripped.
_pkgver="${pkgver//[^[:alnum:]]/_}"
source=("http://files.magicq.co.uk/v${_pkgver}/magicq_ubuntu_v${_pkgver}.deb")
sha256sums=('4f1b3b1d53c4250bc0ddd5340c31690206e2057dd723584b12f4d35ca251a69e')
# 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
}
|