# Maintainer: spider-mario # Contributor: Saiki81 # adapted from package: pianoteq-stage-trial-bin # adapted from pkgbuild creator: CrocoDuck pkgname=pianoteq-stage pkgver=6.2.1 pkgrel=1 pkgdesc="Virtual piano instrument using physical modelling synthesis. Both standalone and plugin versions." arch=('i686' 'x86_64') url="https://www.pianoteq.com/pianoteq" license=('LGPL') depends=('alsa-lib' 'freetype2' 'libxext') makedepends=('gendesk' 'wget' 'p7zip') optdepends=() provides=("${pkgname%-*}") conflicts=("${pkgname%-*}" "pianoteq-stage-bin" "pianoteq-standard-trial-bin") # the source package must be downloaded manually # this can be done by going to the link here: # https://www.pianoteq.com/download?file=pianoteq_stage_linux_v621.7z source=("file://pianoteq_stage_linux_v${pkgver//./}.7z" 'https://www.pianoteq.com/images/logo/pianoteq_icon_128.png') sha512sums=('ac8fc6acf2026e41679201e8bc146e5c5e9f6e2063eca4e044f7e32e8c8076a4ade79592de51fafbd046a0e2738e9edd9e16cbbf709884daa914e14198a69683' '71690cc597b16cd363ddf8837c81eece620be275bf7860e2a2a30cc94da73f32a809d24a086c6ceacbe945282c8b73d03d6567e6058b620b4beb07feb4e46dab') prepare(){ gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name='pianoteq 6' --exec='pianoteq\ 6' --categories 'Audio;Sequencer;Midi;AudioVideoEditing;Music;AudioVideo;' } package(){ _pianoteq_type="Pianoteq 6 STAGE" # Define architecture specific file directory: if [[ "$CARCH" == i686 ]]; then archdir=i386 else archdir=amd64 fi # Install program files: install -Dm 755 "$srcdir/$_pianoteq_type/$archdir/$_pianoteq_type" "$pkgdir/usr/bin/pianoteq 6" install -Dm 755 "$srcdir/$_pianoteq_type/$archdir/$_pianoteq_type.so" "$pkgdir/usr/lib/vst/pianoteq 6.so" cd "$srcdir/$_pianoteq_type/$archdir/$_pianoteq_type.lv2" for i in *; do install -D "$i" "$pkgdir/usr/lib/lv2/Pianoteq 6.lv2/$i" done cd $srcdir # Install desktop launcher: install -Dm 644 "$srcdir/pianoteq_icon_128.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" install -Dm 644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/${pkgname%-*}.desktop" # Install the license: install -d "$pkgdir/usr/share/licenses/$pkgname" ls -a install -m 644 "$_pianoteq_type"/*Licence* "$pkgdir/usr/share/licenses/$pkgname/" # Install the Documentation: install -D "$_pianoteq_type/README_LINUX.txt" "$pkgdir/usr/share/doc/${pkgname%-*}/README_LINUX.txt" cd "$srcdir/$_pianoteq_type/Documentation" for i in *; do install -D "$i" "$pkgdir/usr/share/doc/${pkgname%-*}/$i" done }