# $Id: PKGBUILD 80173 2012-11-17 12:51:55Z lfleischer $ # Maintainer: Lukas Fleischer # Contributor: Shinlun Hsieh # Contributor: Mateusz Herych # Contributor: Storyteller # ALARM: Kevin Mihelich # - remove wine makedepend, no vst pkgname=lmms pkgver=1.1.1 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=('fftw: SpectrumAnalyzer plugin' 'stk: STK instruments plugins' 'pulseaudio: PulseAudio output') makedepends=('cmake' 'ladspa' 'libxft' 'freetype2' 'fftw' 'stk') provides=('lmms-extras') conflicts=('lmms-extras') options=('!makeflags') install=lmms.install source=("https://github.com/LMMS/${pkgname}/archive/v${pkgver}.tar.gz" 0001-Fix-calcSlope1-was-not-declared-errors.patch) md5sums=('e56c3e58cdb97ca42e6fb89970c37254' 'b31417f5a2fed0f498343a552e957c5f') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" patch -p1 -i ../0001-Fix-calcSlope1-was-not-declared-errors.patch } build() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i 's|lib64|lib|g' cmake/modules/DetectMachine.cmake cmake . -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="${pkgdir}" install }