summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55d4fc0008a7c67a25a4fee778047e0256a85812 (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
# Maintainer: Christopher Snowhill <kode54@gmail.com>
pkgname=fooyin-kode54-plugins-git
_pkgname=${pkgname%-git}
pkgver=r12.53447ec
pkgrel=1
pkgdesc="A set of plugins for Fooyin (Git version)"
url="https://github.com/kode54/fooyin-kode54-plugins"
arch=('x86_64')
license=('GPL3'
         'LGPL2.1'
         'ZLIB'
         'proprietary')
makedepends=('cmake' 'git')
depends=('fooyin' 'libbass' 'libbassmidi' 'libbass_mpc' 'libbassflac' 'libbassopus'
         'libbasswv' 'libmgba')
source=('git+https://github.com/kode54/fooyin-kode54-plugins.git'
        'git+https://github.com/kode54/midi_processing.git'
        'git+https://bitbucket.org/losnoco/psflib.git'
        'git+https://bitbucket.org/losnoco/highly_experimental.git'
        'git+https://bitbucket.org/losnoco/highly_theoretical.git'
        'git+https://bitbucket.org/losnoco/highly_quixotic.git'
        'git+https://bitbucket.org/losnoco/vio2sf.git'
        'git+https://bitbucket.org/losnoco/lazyusf2.git'
        'git+https://bitbucket.org/losnoco/sseqplayer.git')
md5sums=('SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  echo r$(git rev-list --count master).$(git rev-parse --short master)
}

prepare() {
  cd "$srcdir/$_pkgname"
  git submodule init
  git config submodule.subprojects/midi_processing.url "$srcdir/midi_processing"
  git config submodule.subprojects/psflib.url "$srcdir/psflib"
  git config submodule.subprojetcs/highly_experimental.url "$srcdir/highly_experimental"
  git config submodule.subprojects/highly_theoretical.url "$srcdir/highly_theoretical"
  git config submodule.subprojects/highly_quixotic.url "$srcdir/highly_quixotic"
  git config submodule.subprojects/vio2sf.url "$srcdir/vio2sf"
  git config submodule.subprojects/lazyusf2.url "$srcdir/lazyusf2"
  git config submodule.subprojects/sseqplayer.url "$srcdir/sseqplayer"
  git -c protocol.file.allow=always submodule update
}

build() {
  local cmake_options=(
    -B build
    -S $_pkgname
    -W no-dev
    -D CMAKE_BUILD_TYPE=None
  )
  cmake "${cmake_options[@]}"
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}