PKGBUILDs/community/lmms/PKGBUILD

60 lines
2.2 KiB
Bash
Raw Normal View History

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
2019-10-21 12:27:21 +00:00
pkgver=1.2.1
2020-06-03 19:56:14 +00:00
pkgrel=4
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')
2019-10-21 12:27:21 +00:00
depends=('alsa-lib' 'fftw' 'fltk' 'fluidsynth' 'gcc-libs' 'glibc' 'lame'
'libgig.so' 'libogg' 'libportaudio.so' 'libpulse' 'libsamplerate' 'libsndfile'
'libvorbis.so' 'libvorbisenc.so' 'libvorbisfile.so' 'libx11' 'qt5-base'
2019-03-14 12:38:37 +00:00
'qt5-x11extras' 'sdl' 'stk')
2019-10-21 12:27:21 +00:00
makedepends=('cmake' 'doxygen' 'extra-cmake-modules' 'freetype2'
2018-10-12 23:56:48 +00:00
'ladspa' 'qt5-tools')
optdepends=('pulseaudio: pulseaudio support')
2019-06-09 15:06:52 +00:00
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}_${pkgver}.tar.xz"
2018-10-13 00:21:32 +00:00
'https://github.com/rampantpixels/rpmalloc/commit/1c580b394e1a20e63d63c72cad421f7be4422089.patch')
2019-10-21 12:27:21 +00:00
sha512sums=('7054d1592fdea60d76423a0260e941c217f50d2db9c4fcc35df20c8b58067c431ed9b264ef05e9f3f2cba84ca66870d1bf23da92b294a00ac6d567e3d3e771d6'
2018-10-13 00:21:32 +00:00
'95b8df46fbb1194d30ba9dd34e7b0325590c63a1a2f34730fa62c00fea1a75e728733ee3c287ed2b31150e66aa18e170fe4725a0e7cad2518039a19b12dc389c')
2012-11-18 17:38:37 +00:00
2015-12-10 05:06:18 +00:00
prepare() {
2018-10-12 23:56:48 +00:00
cd "${pkgname}-${pkgver}"
mkdir -vp build
# setting lib dir
sed -e 's|lib64|lib|g' -i cmake/modules/DetectMachine.cmake
2018-10-13 00:21:32 +00:00
# upstream rpmalloc fix for ARM
patch -p1 -d src/3rdparty/rpmalloc/rpmalloc -i "${srcdir}/1c580b394e1a20e63d63c72cad421f7be4422089.patch"
2015-12-10 05:06:18 +00:00
}
build() {
2018-10-12 23:56:48 +00:00
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 \
2019-10-21 12:27:21 +00:00
-DOpenGL_GL_PREFERENCE=GLVND \
2018-10-12 23:56:48 +00:00
..
2012-11-18 17:38:37 +00:00
make
}
package() {
2018-10-12 23:56:48 +00:00
cd "${pkgname}-${pkgver}/build"
2012-11-18 17:38:37 +00:00
make DESTDIR="${pkgdir}" install
}