2019-10-21 12:27:21 +00:00
|
|
|
# Maintainer: David Runge <dvzrv@archlinux.org>
|
2018-10-12 23:56:48 +00:00
|
|
|
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
|
2012-11-18 17:38:37 +00:00
|
|
|
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
|
|
|
|
# Contributor: Mateusz Herych <heniekk@gmail.com>
|
|
|
|
# Contributor: Storyteller <spiralsorrow@hotmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2018-10-12 23:56:48 +00:00
|
|
|
# - remove wine makedepend and optdepend
|
|
|
|
# - remove carla makedepend
|
|
|
|
# - remove -DWINE_INCLUDE_DIR and -DWINE_LIBRARY from cmake command
|
2018-10-13 00:21:32 +00:00
|
|
|
# - upstream rpmalloc fix for ARM
|
2012-11-18 17:38:37 +00:00
|
|
|
|
|
|
|
pkgname=lmms
|
2020-08-08 17:55:42 +00:00
|
|
|
pkgver=1.2.2
|
2021-08-02 23:04:00 +00:00
|
|
|
pkgrel=5
|
2018-10-12 23:56:48 +00:00
|
|
|
pkgdesc='The Linux MultiMedia Studio'
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://lmms.io"
|
|
|
|
license=('GPL2')
|
|
|
|
groups=('pro-audio')
|
2020-08-08 17:55:42 +00:00
|
|
|
depends=('gcc-libs' 'glibc' 'lame' 'libx11' 'libxcb' 'qt5-base' 'qt5-x11extras'
|
|
|
|
'sdl' 'sndio' 'zlib')
|
|
|
|
makedepends=('alsa-lib' 'bash-completion' 'cmake' 'doxygen'
|
|
|
|
'extra-cmake-modules' 'fftw' 'fltk' 'fluidsynth' 'freetype2' 'jack' 'ladspa' 'libgig'
|
|
|
|
'libogg' 'libpulse' 'libsamplerate' 'libsndfile' 'libvorbis' 'portaudio'
|
|
|
|
'qt5-tools' 'stk')
|
|
|
|
optdepends=('pulseaudio: pulseaudio support'
|
|
|
|
'wine: VST plugin support')
|
2019-06-09 15:06:52 +00:00
|
|
|
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}_${pkgver}.tar.xz"
|
2021-06-09 14:12:46 +00:00
|
|
|
"${pkgname}-1.2.2-wine.patch"
|
2018-10-13 00:21:32 +00:00
|
|
|
'https://github.com/rampantpixels/rpmalloc/commit/1c580b394e1a20e63d63c72cad421f7be4422089.patch')
|
2020-08-08 17:55:42 +00:00
|
|
|
sha512sums=('df74d9e938f1c3807e9941b11db4ccfe9450e23b723c82774de15b7666ac39f1bfdd8519231e28849f994628190ecc92fa05d55bbc0b50a4421f2d183e729028'
|
2021-06-09 14:12:46 +00:00
|
|
|
'6dc97f6961a7eda8826ca28e2c3fb5cb69f73423d8809b2fba993120c7ebc3ff1f0dee91b2b7e304341bae89b72348ff86434c2637cfe58af8c6e6e28f43c692'
|
2018-10-13 00:21:32 +00:00
|
|
|
'95b8df46fbb1194d30ba9dd34e7b0325590c63a1a2f34730fa62c00fea1a75e728733ee3c287ed2b31150e66aa18e170fe4725a0e7cad2518039a19b12dc389c')
|
2020-08-08 17:55:42 +00:00
|
|
|
b2sums=('8b561068194e9a4af8260675e784c25a92b6b2f731c29b677cbc16581306bbadcf27ea529adbcd735ff4adffedf3dd98ec7b2d89428a63ea600d022ecdae58e4'
|
2021-06-09 14:12:46 +00:00
|
|
|
'4b42d098c91871bcee9fbdc9486d1273be535f8c4ce837c0f7132cb2ed69739a60551e5c3f0c90059e83ae5d98d5887c5d00d597c785776eff854c42ede8a645'
|
2020-08-08 17:55:42 +00:00
|
|
|
'350a8aa6610e30b5bd2b56a854bc7e8f872064c510cca84a641a8fb666e1a2620a95604c43ea6979ab651cad83524180bdbeae7e70219b109e6740f4f48e54e6')
|
2012-11-18 17:38:37 +00:00
|
|
|
|
2015-12-10 05:06:18 +00:00
|
|
|
prepare() {
|
2020-08-08 17:55:42 +00:00
|
|
|
mv -v "${pkgname}" "${pkgname}-${pkgver}"
|
2021-06-09 14:12:46 +00:00
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
# prevent cmake from doing regular expressions breaking the build
|
|
|
|
patch -Np1 -i ../"${pkgname}-1.2.2-wine.patch"
|
2018-10-13 00:21:32 +00:00
|
|
|
# upstream rpmalloc fix for ARM
|
2021-06-09 14:12:46 +00:00
|
|
|
patch -p1 -d src/3rdparty/rpmalloc/rpmalloc -i "${srcdir}/1c580b394e1a20e63d63c72cad421f7be4422089.patch"
|
2015-12-10 05:06:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-08-08 17:55:42 +00:00
|
|
|
cd "${pkgname}-${pkgver}"
|
2018-10-12 23:56:48 +00:00
|
|
|
export LDFLAGS="${LDFLAGS}"
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
2020-08-08 17:55:42 +00:00
|
|
|
-DCMAKE_BUILD_TYPE='None' \
|
2018-10-12 23:56:48 +00:00
|
|
|
-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 \
|
2019-10-21 12:27:21 +00:00
|
|
|
-DOpenGL_GL_PREFERENCE=GLVND \
|
2020-08-08 17:55:42 +00:00
|
|
|
-W no-dev \
|
|
|
|
-B build \
|
|
|
|
-S .
|
|
|
|
make VERBOSE=1 -C build
|
2012-11-18 17:38:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-08-08 17:55:42 +00:00
|
|
|
depends+=('libasound.so' 'libfftw3f.so' 'libfltk.so' 'libfluidsynth.so'
|
|
|
|
'libgig.so' 'libogg.so' 'libportaudio.so' 'libpulse.so' 'libstk-4.6.1.so'
|
|
|
|
'libvorbis.so' 'libvorbisenc.so' 'libvorbisfile.so' 'libsamplerate.so')
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
make VERBOSE=1 DESTDIR="${pkgdir}" install -C build
|
2012-11-18 17:38:37 +00:00
|
|
|
}
|