summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce33e51b74a2355c71aa70aaba207626f6f7426b (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Maintainer: Jean Pierre Cimalando <jp-dev@inbox.ru>
pkgname=smf-dsp-git
_pkgname=smf-dsp
pkgver=0.10.0.r21.ga0c9a5a
pkgrel=1
epoch=
pkgdesc="Advanced MIDI file player, including various chip music synths"
arch=('x86_64')
url="https://github.com/jpcima/smf-dsp"
license=('Boost')
groups=()
depends=('sdl2' 'sdl2_image' 'libsoundio' 'jack' 'alsa-lib' 'libuv' 'glib2' 'hicolor-icon-theme')
makedepends=('git' 'cmake')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/jpcima/smf-dsp.git"
        "git+https://github.com/Wohlstand/libADLMIDI.git"
        "git+https://github.com/Wohlstand/libOPNMIDI.git"
        "git+https://github.com/jpcima/scc.git"
        "git+https://github.com/munt/munt.git"
        "git+https://github.com/divideconcept/FluidLite.git"
        "git+https://github.com/jpcima/timidityplus.git"
        "git+https://github.com/martinmoene/span-lite.git"
        "git+https://github.com/martinmoene/scope-lite.git"
        "git+https://github.com/martinmoene/string-view-lite.git")
noextract=()
md5sums=('SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP')
validpgpkeys=()

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

prepare() {
  cd "$_pkgname"
  git submodule init
  git config submodule.thirdparty/libADLMIDI.url "$srcdir"/libADLMIDI
  git config submodule.thirdparty/libOPNMIDI.url "$srcdir"/libOPNMIDI
  git config submodule.thirdparty/scc.url "$srcdir"/scc
  git config submodule.thirdparty/munt.url "$srcdir"/munt
  git config submodule.thirdparty/FluidLite.url "$srcdir"/FluidLite
  git config submodule.thirdparty/timidityplus.url "$srcdir"/timidityplus
  git config submodule.thirdparty/span-lite.url "$srcdir"/span-lite
  git config submodule.thirdparty/scope-lite.url "$srcdir"/scope-lite
  git config submodule.thirdparty/string-view-lite.url "$srcdir"/string-view-lite
  git submodule update
}

build() {
  cd "$_pkgname"
  mkdir -p build
  cd build
  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
  cd ..
  make -C build
}

package() {
  cd "$_pkgname"
  make DESTDIR="$pkgdir" -C build install
  install -D -m644 LICENSE.md "$pkgdir"/usr/share/licenses/"$_pkgname"/LICENSE.md
}