# $Id: PKGBUILD 322467 2018-04-19 21:27:12Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

pkgname=libgme
pkgver=0.6.2
pkgrel=1
pkgdesc="Video game music file emulation/playback library"
url="https://bitbucket.org/mpyne/game-music-emu"
license=('LGPL')
arch=('x86_64')
depends=('gcc-libs')
makedepends=('cmake')
source=("https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-$pkgver.tar.xz"{,.asc})
sha256sums=('5046cb471d422dbe948b5f5dd4e5552aaef52a0899c4b2688e5a68a556af7342'
            'SKIP')
validpgpkeys=(5406ECE83665DA9D201D35720BAF0C9C7B6AE9F2) # Michael Pyne <mpyne@kde.org>

build() {
  cd game-music-emu-${pkgver}
  mkdir build
  cd build

  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd game-music-emu-${pkgver}/build
  make DESTDIR="${pkgdir}" install
}
