summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e89e7e41710a1eea7ef2b4426ce6554ffe8de536 (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
# Maintainer: Christopher Snowhill <kode54@gmail.com>
pkgname=fooyin-kode54-plugins-git
_pkgname=${pkgname%-git}
pkgver=r91.297ebb1
pkgrel=1
pkgdesc="A set of plugins for Fooyin (Git version)"
url="https://github.com/kode54/fooyin-kode54-plugins"
arch=('x86_64')
license=('GPL-3.0-only')
makedepends=('cmake' 'git')
depends=('fooyin-git' 'libmgba' 'vgmstream' 'libspessasynth')
optdepends=('soundfont-generaluserxg: Suggested default XG/GS banks')
source=('git+https://github.com/kode54/fooyin-kode54-plugins.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'
        'git+https://bitbucket.org/losnoco/libsnes9x.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/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 config submodule.subprojects/libsnes9x.url "$srcdir/libsnes9x"
  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
}