summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b47ead608a1023a60f0a066cd56c987d320fde2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Maintainer: liushuyu
# Contributor: Xyne
# Contributor: Scott Garrett <Wintervenom@archlinux.us>
# Contributor: Thomas Dziedzic

_pkgname=lmms
pkgname=lmms-qt5-git
pkgver=1.2.0.rc7.r1.g9799f3ca1
pkgrel=2
pkgdesc='The Linux MultiMedia Studio (Qt5 Version).'
url='http://lmms.io'
arch=('i686' 'x86_64')
license=('GPL')
depends=('qt5-base' 'libsamplerate' 'fluidsynth' 'libxft' 
'libxinerama' 'shared-mime-info' 'alsa-lib' 'fltk')
optdepends=('wine: Windows VST support (experimental)'
            'fftw: SpectrumAnalyzer plugin'
            'jack: Optional JACK audio backend'
            'portaudio: Optional Portaudio audio backend'
            'sdl_sound: Optional SDL audio backend'
            'pulseaudio: Optional PulseAudio backend'
            'oss: Optional OSS backend'
            'libsoundio: For soundio support'
            'lame: For exporting MP3 format')
makedepends=('qt5-tools' 'git' 'cmake' 'ninja' 'ladspa' 'raptor' 'rasqal' 'libxft' 'freetype2' 'redland' 'gcc-multilib' 'lame' 'perl-list-moreutils' 'zynaddsubfx')
options=('!strip')
provides=('lmms')
conflicts=('lmms' 'lmms-git')
source=('git+https://github.com/LMMS/lmms.git#branch=stable-1.2')
sha512sums=('SKIP')

pkgver() {
  cd -- "$srcdir/$_pkgname"
  git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
  cd -- "$srcdir/$_pkgname"
  git submodule update --init --recursive
  git shortlog -nse | cut -f 2- > doc/CONTRIBUTORS
}

build() {
  cd -- "$srcdir/$_pkgname"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DWANT_QT5=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja -DWANT_WEAKJACK=OFF -DCMAKE_INSTALL_LIBDIR=/usr/lib
  ninja
}

package() {
  cd "$srcdir/$_pkgname"
  DESTDIR="$pkgdir" ninja install

  # Merge directories
  if test -d "$pkgdir"/usr/lib64/; then
    if test -d "$pkgdir"/usr/lib/; then
      mv "$pkgdir"/usr/lib64/* "$pkgdir"/usr/lib/
      rm -rf "$pkgdir"/usr/lib64/
    fi
    mv "$pkgdir"/usr/lib64/ "$pkgdir"/usr/lib/
  fi
}

# vim:set ts=2 sw=2 et: