# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=libretro-core-info
pkgver=1.21.1
pkgrel=1
pkgdesc='Libretro core info files'
arch=(any)
url=https://github.com/libretro/libretro-core-info
license=(GPL3)
makedepends=(git)
groups=(libretro)
_tag=98016cb2ee6447f98deaf9a7f8743516c78b4bbe
source=(git+https://github.com/libretro/libretro-core-info.git#tag=${_tag})
sha256sums=('72e0f9ef64b5d6e292b017b2e5f41464d9abc45603cfd8351151bf39a8ae5c0c')

pkgver() {
  cd libretro-core-info

  git describe --tags | sed 's/^v//; s/-/./g'
}

package() {
  make DESTDIR="${pkgdir}" -C libretro-core-info install
}

# vim: ts=2 sw=2 et:
