summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0c6bc5a6af8e06c7f9583f0a4f2530dc1efb79c (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
pkgname=crown-amp-bin
pkgver=20220527
pkgrel=1
pkgdesc="Audio Assault Modern High Gain Amp Simulator Next Generation"
arch=('x86_64')
url="https://audioassault.mx/products/sigma"
license=('EULA')
groups=('pro-audio' 'vst-plugins' 'vst3-plugins')
depends=('libcurl-gnutls' 'glibc')
makedepends=('xdg-user-dirs' 'unzip')
conflicts=('crown-ex-amp-bin')
source=("Crown EX Amp.desktop")
sha256sums=('9ee179709bce7be2eab743547c78a8c3312a6fe5b72fa2beef498283fad05b2a')

prepare () {
	## Extract Duality Bass Studio
	_archive="`xdg-user-dir DOWNLOAD`/TheCrownEXv1_0_Installers.zip"
	ln -srf "${_archive}" "$srcdir/`basename "${_archive}"`"
	unzip "$srcdir/`basename "${_archive}"`"
	find $srcdir -name ".DS_Store" -delete
}

package() {
    ## Install Preset and Default Libraries
    mkdir -p "$pkgdir/opt/Audio Assault/The Crown EX" "$pkgdir/usr/bin" "$pkgdir/usr/share/applications"
    cp -rf "$srcdir/The Crown EX Linux/The Crown EX"/{IRs,MIDI,Presets} "$pkgdir/opt/Audio Assault/The Crown EX"

    ## Install VST Plugin
    install -Dm755 "$srcdir/The Crown EX Linux/The Crown EX.so" "$pkgdir/usr/lib/vst/The Crown EX.so"

    ## Install VST3 Plugin
    install -Dm755 "$srcdir/The Crown EX Linux/The Crown EX.vst3/Contents/x86_64-linux/The Crown EX.so" "$pkgdir/usr/lib/vst3/The Crown EX.vst3/Contents/x86_64-linux/The Crown EX.so"

    ## Install Standalone Binary
    cp "$srcdir/The Crown EX Linux/The Crown EX Standalone" "$pkgdir/usr/bin/The Crown EX Standalone"
    chmod +x "$pkgdir/usr/bin/The Crown EX Standalone"
    install -Dm644 "$srcdir/Crown EX Amp.desktop" "$pkgdir/usr/share/applications/Crown EX Amp.desktop"
}