summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a87b76d14861ca19e9b8d87c4eaaae2aef2ef219 (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
# Maintainer: Aaron Paden
# Mantainer: Franco Tortoriello

pkgname=munt-git
_pkgname=munt
pkgdesc="Software synthesiser emulating pre-GM MIDI devices, such as the Roland MT-32"
pkgver=1979.9bb289a
pkgrel=1
arch=(i686 x86_64)
url="http://munt.sourceforge.net"
license=(LGPL2.1)
depends=('qt5-base' 'qt5-multimedia' 'portaudio' 'libpulse' 'alsa-lib')
makedepends=('git' 'cmake' 'gendesk')
options=(staticlibs)
source=(git://github.com/munt/munt.git)
provides=('munt')
conflicts=('munt')
md5sums=(SKIP)

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


build() {
  cd "${srcdir}"
  gendesk -n -f \
          --pkgname="${pkgname}" \
          --pkgdesc="${pkgdesc}" \
          --name="Munt" \
          --categories="Audio;AudioVideo;Midi;X-Alsa;X-Jack;Qt" \
          --exec="/usr/bin/mt32emu-qt" \
          --startupnotify=true
  
  convert "${srcdir}/${_pkgname}/mt32emu_qt/src/images/Icon.gif" "${srcdir}/munt.png"

  cd "${srcdir}/${_pkgname}"
  cmake . -DWITH_INTERNAL_PORTAUDIO='FALSE' -DCMAKE_INSTALL_PREFIX='/usr'
  make
}

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