summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d9555a8fab94d74b4b87a98ba17960bd239902d (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: Andrew Lin <andrewlin16@gmail.com>

pkgname=vgmplay-libvgm-git
pkgver=0.51.0.r3.g813abab
pkgrel=1
pkgdesc="A new VGMPlay, based on libvgm"
arch=('x86_64')
url="https://github.com/ValleyBell/vgmplay-libvgm"
license=('GPL')
source=(
  "git+https://github.com/ValleyBell/vgmplay-libvgm.git"
  "git+https://github.com/benhoyt/inih.git"
  "git+https://github.com/alex85k/wingetopt.git"
)
depends=('libvgm-player-git' 'libvgm-emu-git' 'libvgm-utils-git' 'libvgm-audio-git')
makedepends=('cmake' 'git')
conflicts=('vgmplay')
md5sums=('SKIP' 'SKIP' 'SKIP')

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --tags | sed 's/-/.r/;s/-/./'
}

prepare() {
  cd "${pkgname%-git}"
  git submodule init
  git config submodule.inih.url "$srcdir/inih"
  git config submodule.wingetopt.url "$srcdir/wingetopt"
  git submodule update
}

build() {
  cd "${pkgname%-git}"
  cmake .
  make
}

package() {
  cd "${pkgname%-git}"
  install -d -m755 "$pkgdir/usr/bin"
  install -m755 vgmplay "$pkgdir/usr/bin/vgmplay"
  install -d -m755 "$pkgdir/usr/share/vgmplay"
  install -m644 VGMPlay.ini "$pkgdir/usr/share/vgmplay/VGMPlay.ini"
}

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