mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
73 lines
2.5 KiB
Bash
73 lines
2.5 KiB
Bash
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
|
|
# Contributor: Ernesto Manríquez <alejandronova@gmail.com>
|
|
|
|
#_pkgname=ZynAddSubFX
|
|
pkgname=zynaddsubfx
|
|
pkgver=2.5.3
|
|
pkgrel=2
|
|
pkgdesc="Open source additive and substractive software synthesizer, with an integrated effect engine."
|
|
arch=('x86_64')
|
|
url="http://zynaddsubfx.sourceforge.net/"
|
|
license=('GPL2')
|
|
depends=('fftw' 'mxml' 'zlib' 'fltk' 'lash' 'dssi' 'fftw')
|
|
makedepends=('jack' 'ladspa' 'cmake' 'gendesk' 'setconf')
|
|
source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
|
|
'cmakelist-dssi.diff')
|
|
categories=('multimedia')
|
|
sha1sums=('591aa5e67c02b5dffc3fbc209930010af59b262d'
|
|
'd20477c0468e9597d62c0a1015bbd8402bbfdbe5')
|
|
|
|
prepare() {
|
|
cd "$srcdir"
|
|
gendesk $startdir/PKGBUILD
|
|
setconf "$pkgname.desktop" Icon "$pkgname.svg"
|
|
|
|
cd "${srcdir}"
|
|
[[ -e build ]] && rm -rf build
|
|
mkdir -p build
|
|
|
|
# patch dssi installation directory
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
patch ${srcdir}/${pkgname}-${pkgver}/src/CMakeLists.txt < $srcdir/cmakelist-dssi.diff
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/build"
|
|
|
|
cmake "${srcdir}/${pkgname}-${pkgver}" \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DDefaultOutput=jack \
|
|
-DDefaultInput=jack \
|
|
-DGuiModule=fltk \
|
|
-DDssiEnable=true
|
|
make
|
|
|
|
# build external programs
|
|
cd ${srcdir}/${pkgname}-${pkgver}/ExternalPrograms/Spliter && make
|
|
cd ../Controller && sed -i "s|Box\.h|Box\.H|" ControllerUI.fl && make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/build"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# Dirty hack on libraries
|
|
#mv -v ${pkgdir}/usr/lib64/* ${pkgdir}/usr/lib/
|
|
#rm -rfv ${pkgdir}/usr/lib64/
|
|
|
|
# Also copy the data files...
|
|
install -dm755 "${pkgdir}/usr/share/${pkgname}"
|
|
cp -a "${srcdir}/${pkgname}-${pkgver}/instruments/banks" "${pkgdir}/usr/share/${pkgname}"
|
|
cp -a "${srcdir}/${pkgname}-${pkgver}/instruments/examples" "${pkgdir}/usr/share/${pkgname}"
|
|
|
|
# install external programs
|
|
install -Dm755 ${srcdir}/${pkgname}-${pkgver}/ExternalPrograms/Spliter/spliter "$pkgdir/usr/bin/spliter"
|
|
install -Dm755 ${srcdir}/${pkgname}-${pkgver}/ExternalPrograms/Controller/controller "$pkgdir/usr/bin/controller"
|
|
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/ExternalPrograms/Spliter/readme.txt "$pkgdir/usr/share/doc/$pkgname/SPLITER.txt"
|
|
|
|
# desktop file and icon
|
|
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/$pkgname.svg" "$pkgdir/usr/share/pixmaps/$pkgname.svg"
|
|
install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
|
|
}
|