# $Id: PKGBUILD 275541 2017-12-22 19:27:29Z alucryd $
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=libretro-yabause
pkgver=2953
pkgrel=1
pkgdesc='Sega Saturn core'
arch=('x86_64')
url='https://github.com/libretro/yabause'
license=('GPL2')
groups=('libretro')
depends=('glibc' 'libretro-core-info')
makedepends=('git')
_commit='c55eef9796f1612bab60824685e66ee58657e576'
source=("libretro-yabause::git+https://github.com/libretro/yabause.git#commit=${_commit}")
sha256sums=('SKIP')

pkgver() {
  cd libretro-yabause

  git rev-list --count HEAD
}

build() {
  cd libretro-yabause/libretro

  make
}

package() {
  cd libretro-yabause/libretro

  install -Dm 644 yabause_libretro.so -t "${pkgdir}"/usr/lib/libretro/
}

# vim: ts=2 sw=2 et:
