community/lmms to 1.2.0rc7-1

This commit is contained in:
Kevin Mihelich 2018-10-12 23:56:48 +00:00
parent 58d777ea4a
commit aaa7bdbacb

View file

@ -1,52 +1,63 @@
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org> # Maintainer: David Runge <dave@sleepmap.de>
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw> # Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
# Contributor: Mateusz Herych <heniekk@gmail.com> # Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: Storyteller <spiralsorrow@hotmail.com> # Contributor: Storyteller <spiralsorrow@hotmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - 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 pkgname=lmms
pkgver=1.1.3 pkgver=${_pkgver/-}
pkgrel=4 pkgrel=1
pkgdesc='The Linux MultiMedia Studio.' pkgdesc='The Linux MultiMedia Studio'
arch=('i686' 'x86_64') arch=('x86_64')
url='http://lmms.sourceforge.net/' url="https://lmms.io"
license=('GPL') license=('GPL2')
depends=('sdl' 'glib2' 'fluidsynth' 'libpng' 'libvorbis' 'libxft' 'libxinerama' 'qt4' 'sdl_sound' groups=('pro-audio')
'libsamplerate' 'shared-mime-info' 'fltk') depends=('fftw' 'fltk' 'fluidsynth' 'lame' 'libgig' 'libsamplerate'
optdepends=('fftw: SpectrumAnalyzer plugin' 'qt5-x11extras' 'sdl' 'stk')
'stk: STK instruments plugins' makedepends=('cmake' 'doxygen' 'extra-cmake-modules' 'freetype2' 'git'
'pulseaudio: PulseAudio output') 'ladspa' 'qt5-tools')
makedepends=('cmake' 'ladspa' 'libxft' 'freetype2' 'fftw' 'stk') optdepends=('pulseaudio: pulseaudio support')
makedepends_x86_64=('gcc-multilib') source=("git+https://github.com/${pkgname}/${pkgname}.git#tag=v${_pkgver}"
provides=('lmms-extras') 'git+https://github.com/Lukas-W/qt5-x11embed.git'
conflicts=('lmms-extras') 'git+https://github.com/rampantpixels/rpmalloc.git')
options=('!makeflags') sha512sums=('SKIP'
source=("$pkgname-$pkgver.tar.gz::https://github.com/LMMS/${pkgname}/archive/v${pkgver}.tar.gz" 'SKIP'
'lmms-1.1.3-gcc-6.0-buildfix.patch' 'SKIP')
"make-werrror-optional.patch")
md5sums=('88d9e66d240b711c37315e3c9da644a1'
'daf525e570f58f9cc5de0af380162e79'
'2c6e51b665c34fa61dc8b23e129404a9')
prepare() { prepare() {
cd "${srcdir}/${pkgname}-${pkgver}" mv -v "${pkgname}" "${pkgname}-${pkgver}"
cd "${pkgname}-${pkgver}"
sed -i 's|lib64|lib|g' cmake/modules/DetectMachine.cmake mkdir -vp build
git submodule init
patch -Np1 -i ../lmms-1.1.3-gcc-6.0-buildfix.patch git config submodule.src/3rdparty/qt5-x11embed.url "${srcdir}/qt5-x11embed"
patch -Np1 -i ../make-werrror-optional.patch 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() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${pkgname}-${pkgver}/build"
export LDFLAGS="${LDFLAGS}"
cmake . -DCMAKE_INSTALL_PREFIX=/usr 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 make
} }
package() { package() {
cd "$srcdir/$pkgname-$pkgver" cd "${pkgname}-${pkgver}/build"
make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
} }