# $Id: PKGBUILD 116113 2014-07-22 16:03:04Z lfleischer $ # Maintainer: Lukas Fleischer # Contributor: Shinlun Hsieh # Contributor: Mateusz Herych # Contributor: Storyteller pkgname=lmms pkgver=1.0.3 pkgrel=1 pkgdesc='The Linux MultiMedia Studio.' arch=('i686' 'x86_64') url='http://lmms.sourceforge.net/' license=('GPL') depends=('sdl' 'glib2' 'fluidsynth' 'libpng' 'libvorbis' 'libxft' 'libxinerama' 'qt4' 'sdl_sound' 'libsamplerate' 'shared-mime-info' 'fltk') optdepends=('wine: VST support (experimental)' 'fftw: SpectrumAnalyzer plugin' 'stk: STK instruments plugins' 'pulseaudio: PulseAudio output') makedepends=('cmake' 'ladspa' 'libxft' 'freetype2' 'fftw' 'stk') [[ $CARCH = i686 ]] && makedepends+=('wine') provides=('lmms-extras') conflicts=('lmms-extras') options=('!makeflags') install=lmms.install source=("https://github.com/LMMS/${pkgname}/releases/download/v{$pkgver}/${pkgname}-${pkgver}-src.tar.bz2" lmms-1.0.3-build-fix.patch zynaddsubfx_unlink.patch) md5sums=('1f63ad9abd1781206d852e79b2191638' 'fa8ab5c48b021b87f80444440479190a' 'd2ea78ac0cf2979505f140c6845617cf') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" patch -Np1 -i ../lmms-1.0.3-build-fix.patch patch -Np1 -i ../zynaddsubfx_unlink.patch } build() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i 's|lib64|lib|g' cmake/modules/DetectMachine.cmake cmake . -DCMAKE_INSTALL_PREFIX=/usr -USE=vst make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="${pkgdir}" install }