diff --git a/community/lmms/PKGBUILD b/community/lmms/PKGBUILD index 1600ee272..882689e63 100644 --- a/community/lmms/PKGBUILD +++ b/community/lmms/PKGBUILD @@ -1,52 +1,63 @@ -# Maintainer: Lukas Fleischer +# Maintainer: David Runge +# Contributor: Lukas Fleischer # Contributor: Shinlun Hsieh # Contributor: Mateusz Herych # Contributor: Storyteller # ALARM: Kevin Mihelich -# - remove wine makedepend, no vst +# - remove wine makedepend and optdepend +# - remove carla makedepend +# - remove -DWINE_INCLUDE_DIR and -DWINE_LIBRARY from cmake command +_pkgver=1.2.0-rc7 pkgname=lmms -pkgver=1.1.3 -pkgrel=4 -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') -makedepends_x86_64=('gcc-multilib') -provides=('lmms-extras') -conflicts=('lmms-extras') -options=('!makeflags') -source=("$pkgname-$pkgver.tar.gz::https://github.com/LMMS/${pkgname}/archive/v${pkgver}.tar.gz" - 'lmms-1.1.3-gcc-6.0-buildfix.patch' - "make-werrror-optional.patch") -md5sums=('88d9e66d240b711c37315e3c9da644a1' - 'daf525e570f58f9cc5de0af380162e79' - '2c6e51b665c34fa61dc8b23e129404a9') +pkgver=${_pkgver/-} +pkgrel=1 +pkgdesc='The Linux MultiMedia Studio' +arch=('x86_64') +url="https://lmms.io" +license=('GPL2') +groups=('pro-audio') +depends=('fftw' 'fltk' 'fluidsynth' 'lame' 'libgig' 'libsamplerate' +'qt5-x11extras' 'sdl' 'stk') +makedepends=('cmake' 'doxygen' 'extra-cmake-modules' 'freetype2' 'git' +'ladspa' 'qt5-tools') +optdepends=('pulseaudio: pulseaudio support') +source=("git+https://github.com/${pkgname}/${pkgname}.git#tag=v${_pkgver}" + 'git+https://github.com/Lukas-W/qt5-x11embed.git' + 'git+https://github.com/rampantpixels/rpmalloc.git') +sha512sums=('SKIP' + 'SKIP' + 'SKIP') prepare() { - cd "${srcdir}/${pkgname}-${pkgver}" - - sed -i 's|lib64|lib|g' cmake/modules/DetectMachine.cmake - - patch -Np1 -i ../lmms-1.1.3-gcc-6.0-buildfix.patch - patch -Np1 -i ../make-werrror-optional.patch + mv -v "${pkgname}" "${pkgname}-${pkgver}" + cd "${pkgname}-${pkgver}" + mkdir -vp build + git submodule init + git config submodule.src/3rdparty/qt5-x11embed.url "${srcdir}/qt5-x11embed" + git config submodule.src/3rdparty/rpmalloc.url "${srcdir}/rpmalloc" + git submodule update + # setting lib dir + sed -e 's|lib64|lib|g' -i cmake/modules/DetectMachine.cmake + # setting proper DESTDIR based install path for bash-completion + sed -e 's/\(${BASHCOMP_USER\)/\\$DESTDIR\1/g' -i cmake/modules/BashCompletion.cmake } build() { - cd "${srcdir}/${pkgname}-${pkgver}" - - cmake . -DCMAKE_INSTALL_PREFIX=/usr + cd "${pkgname}-${pkgver}/build" + export LDFLAGS="${LDFLAGS}" + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DWANT_QT5=ON \ + -DWANT_SOUNDIO=OFF \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_MODULE_PATH=/usr/share/ECM/find-modules \ + -DCMAKE_PREFIX_PATH=/usr/include/wine/windows \ + .. make } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "${pkgname}-${pkgver}/build" make DESTDIR="${pkgdir}" install }