diff --git a/community/lmms/PKGBUILD b/community/lmms/PKGBUILD new file mode 100644 index 000000000..57c7db0bd --- /dev/null +++ b/community/lmms/PKGBUILD @@ -0,0 +1,46 @@ +# $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=0.4.13 +pkgrel=2 +pkgdesc='The Linux MultiMedia Studio.' +arch=('i686' 'x86_64') +url='http://lmms.sourceforge.net/' +license=('GPL') +depends=('sdl' 'glib2' 'fluidsynth' 'libpng' 'libvorbis' 'libxft' 'libxinerama' 'qt' 'sdl_sound' + 'libsamplerate' 'shared-mime-info') +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=('!libtool' '!makeflags') +install=lmms.install +source=("http://downloads.sourceforge.net/sourceforge/lmms/${pkgname}-${pkgver}.tar.bz2" + zynaddsubfx_unlink.patch) +md5sums=('80db0dc5263041d443f474220410991f' + 'd2ea78ac0cf2979505f140c6845617cf') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + sed -i 's|lib64|lib|g' cmake/modules/DetectMachine.cmake + + patch -Np1 -i ../zynaddsubfx_unlink.patch + + cmake . -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="${pkgdir}" install +} diff --git a/community/lmms/lmms.install b/community/lmms/lmms.install new file mode 100644 index 000000000..11549cb5c --- /dev/null +++ b/community/lmms/lmms.install @@ -0,0 +1,11 @@ +post_install() { + update-mime-database usr/share/mime &> /dev/null +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} diff --git a/community/lmms/zynaddsubfx_unlink.patch b/community/lmms/zynaddsubfx_unlink.patch new file mode 100644 index 000000000..6b2521f55 --- /dev/null +++ b/community/lmms/zynaddsubfx_unlink.patch @@ -0,0 +1,10 @@ +--- lmms-0.4.13_orig/plugins/zynaddsubfx/LocalZynAddSubFx.cpp 2012-04-08 13:01:25.951925761 +0200 ++++ lmms-0.4.13_test/plugins/zynaddsubfx/LocalZynAddSubFx.cpp 2012-04-08 13:08:32.841905201 +0200 +@@ -23,6 +23,7 @@ + */ + + #include ++#include + + #include "LocalZynAddSubFx.h" +