# Contributor: bzt <unmacaque at gmail dot com>
pkgname=retroarch-rbp-git
pkgver=10073.821d6b0
pkgrel=1
pkgdesc="Reference frontend for the libretro API. (EGL version for Raspberry Pi)"
arch=('armv6h')
url="http://github.com/libretro/RetroArch"
license=('GPL')
optdepends=('libretro-super-git: A collection of many libretro implementations.')
makedepends=('git' 'openal' 'raspberrypi-firmware')
provides=('retroarch')
conflicts=('retroarch')
_gitname=RetroArch
source=("git+https://github.com/libretro/${_gitname}.git")
md5sums=('SKIP')
pkgver() {
cd "${_gitname}"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd "${_gitname}"
./configure --prefix=/usr --disable-x11 --disable-oss --disable-pulse --disable-sdl --enable-floathard
make
}
package() {
cd "${_gitname}"
make install DESTDIR="${pkgdir}"
}