summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdde34450448f8fcc469c1d1b273513470a982d9 (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
# Maintainer: Alexander Mcmillan <linuxguy93@gmail.com> 
# Software Vendor: Harrison Consoles <mixbus@harrisonconsoles.com>

## ATTENTION!! You will need to download the trial and/or obtain a license from Harrison Consoles. Then, drop all appropriate files in the root with the PKGBUILD directory. Also, uncomment the lines that reference the license file if you want an easy install process.

pkgname=mixbus4
appname=${pkgname/4/}
pkgver=4.3.19
pkgrel=1
pkgdesc="Harrison Mixbus - Digital Audio Workstation"
arch=('x86_64')
url="http://harrisonconsoles.com/site/${appname}.html"
license=('EULA, GPLv2')
depends=('glibc' 'xorg-server')
conflicts=('mixbus')

prepare() {
## Setup mixbus for installation
_archive="`xdg-user-dir DOWNLOAD`/Mixbus-$pkgver-Linux-64bit-gcc5.tar"
if [ -f ${_archive} ]; then
	ln -srf ${_archive} "$srcdir/`basename ${_archive}`"
	msg2 "Unpacking Installer..."
	tar -xf ${_archive}
	./Mixbus-$pkgver-$(uname -m)-gcc5.run --tar xf
	tar -xf $srcdir/Mixbus_$(uname -m)-$pkgver.tar
else
	msg2 "Please download a copy from https://harrisonconsoles.com/site/${appname}.html. Then put the `basename ${_archive}` in the `xdg-user-dir DOWNLOAD` directory."
    exit 1
fi
}

package() {
## Create package directories
msg2 "Creating Directories..."
mkdir -p $pkgdir/opt/${appname}
mkdir -p $pkgdir/usr/share/applications

## Copy installation directory to package directory
msg2 "Getting Ready To Package..."
cp -r $srcdir/Mixbus_$(uname -m)-$pkgver/* $pkgdir/opt/${appname}

## Installing License Files
msg2 "Install Mixbus DAW and plugin licenses to ${HOME}..."

## Create a .desktop file
msg2 "Creating A Desktop Entry..."
echo -e "[Desktop Entry]\nEncoding=UTF-8\nVersion=1.0\nType=Application\nTerminal=false\nExec=/opt/${appname}/bin/${appname}6\nName=Mixbus $pkgver\nIcon=/opt/${appname}/share/resources/Mixbus-icon_256px.png\nComment=Digital Audio Workstation\nCategories=AudioVideo;AudioEditing;Audio;Recorder;" > $pkgdir/usr/share/applications/${appname}.desktop

# Mark as excuteable
chmod 644 $pkgdir/usr/share/applications/${appname}.desktop

# Remove uninstall script
rm $pkgdir/opt/${appname}/bin/Mixbus-$pkgver.uninstall.sh

# Remove Plugins Provided By Archlinux
# rm -r $pkgdir/opt/${appname}/lib/LV2/{avldrums,b_synth,b_whirl,dpl,fil4,gmsynth,meters,midifilter,reasonablesynth,stereoroute,tuna}.lv2

## Package has built successfully message
msg2 "Package Built Successfully!!"
}