mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
66 lines
2.3 KiB
Bash
66 lines
2.3 KiB
Bash
# Maintainer: David Runge <dave@sleepmap.de>
|
|
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
|
|
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
|
|
# Contributor: Mateusz Herych <heniekk@gmail.com>
|
|
# Contributor: Storyteller <spiralsorrow@hotmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - remove wine makedepend and optdepend
|
|
# - remove carla makedepend
|
|
# - remove -DWINE_INCLUDE_DIR and -DWINE_LIBRARY from cmake command
|
|
# - upstream rpmalloc fix for ARM
|
|
|
|
_pkgver=1.2.0-rc8
|
|
pkgname=lmms
|
|
pkgver=${_pkgver/-}
|
|
pkgrel=2
|
|
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'
|
|
'https://github.com/rampantpixels/rpmalloc/commit/1c580b394e1a20e63d63c72cad421f7be4422089.patch')
|
|
sha512sums=('SKIP'
|
|
'SKIP'
|
|
'SKIP'
|
|
'95b8df46fbb1194d30ba9dd34e7b0325590c63a1a2f34730fa62c00fea1a75e728733ee3c287ed2b31150e66aa18e170fe4725a0e7cad2518039a19b12dc389c')
|
|
|
|
prepare() {
|
|
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
|
|
# upstream rpmalloc fix for ARM
|
|
patch -p1 -d src/3rdparty/rpmalloc/rpmalloc -i "${srcdir}/1c580b394e1a20e63d63c72cad421f7be4422089.patch"
|
|
}
|
|
|
|
build() {
|
|
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 "${pkgname}-${pkgver}/build"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|