summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e52c047a81ee0dc1eb9f1fa084c8c6751977ae78 (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
pkgname=ctrecordings-plugin-collection
pkgver=$(date +%Y%m%d)
pkgrel=1
pkgdesc="Cut Through Recordings Plugin Collection"
arch=('x86_64')
url="https://www.cutthroughrecordings.com/downloads"
license=('EULA')
groups=('lv2-plugins' 'pro-audio' 'vst-plugins' 'vst3-plugins')
depends=('glibc' 'libcurl-gnutls')
makedepends=('xdg-user-dirs' 'unzip')

package() {	
	cd $srcdir	
	## Install Plugins VST3 Plugins
	mkdir -p $pkgdir/usr/lib/vst3	
	for vst3 in convergence entropy epicpress faradelay m4compressor popss; do
		if [[ -f `xdg-user-dir DOWNLOAD`/$vst3-LinuxVST3-64Bit.zip ]]; then
			ln -srf `xdg-user-dir DOWNLOAD`/$vst3-LinuxVST3-64Bit.zip $srcdir/$vst3-LinuxVST3-64Bit.zip
			unzip $vst3-LinuxVST3-64Bit.zip		
			cp *.vst3 $pkgdir/usr/lib/vst3
			chmod +x $pkgdir/usr/lib/vst3/*.vst3
		fi
	done
	## Install Plugins VST Plugins
	mkdir -p $pkgdir/usr/lib/vst
	for vst in convergence entropy epicpress faradelay m4compressor popss; do
		if [[ -f `xdg-user-dir DOWNLOAD`/$vst-LinuxVST-64Bit.zip ]]; then		
			ln -srf `xdg-user-dir DOWNLOAD`/$vst-LinuxVST-64Bit.zip $srcdir/$vst-LinuxVST-64Bit.zip		
			unzip $vst-LinuxVST-64Bit.zip
			cp *.so $pkgdir/usr/lib/vst
			chmod +x $pkgdir/usr/lib/vst/*.so
		fi
	done
	## Install Plugins LV2 Plugins
	mkdir -p $pkgdir/usr/lib/lv2
	for lv2 in convergence entropy epicpress faradelay m4compressor popss; do
		if [[ -f `xdg-user-dir DOWNLOAD`/$lv2-LinuxLV2-64Bit.zip ]]; then		
			ln -srf `xdg-user-dir DOWNLOAD`/$lv2-LinuxLV2-64Bit.zip $srcdir/$lv2-LinuxLV2-64Bit.zip
			unzip $lv2-LinuxLV2-64Bit.zip
			if [[ -d $srcdir/ctrecordings-$lv2.LV2 ]]; then			
				cp -r $srcdir/ctrecordings-$lv2.LV2 $pkgdir/usr/lib/lv2/ctrecordings-$lv2.lv2
			fi			
			if [[ -d $srcdir/POPSoundShaper.lv2 ]]; then
				cp -r $srcdir/POPSoundShaper.lv2 $pkgdir/usr/lib/lv2/POPSoundShaper.lv2
			fi
		fi
	done
}