# Maintainer : Johnathan Jenkins # Contributor: Drew Liszewski # Contributor: Daniel Varga pkgname=emulationstation-git _gitname=EmulationStation pkgrel=1 pkgver=961.6722c34 pkgdesc="A graphical front-end for emulators with controller navigation. Developed for the Raspbery Pi, but runs on most Linux systems." arch=('i686' 'x86_64' 'armv6h' 'armv7h') url="https://github.com/RetroPie/EmulationStation" license=('MIT') makedepends=('git' 'boost' 'freetype2' 'eigen' 'cmake' 'mesa' 'libsm') depends=('alsa-lib' 'sdl2' 'boost-libs' 'freeimage' 'ttf-dejavu' 'glu' 'vlc') if [ "$CARCH" = "armv6h" ]; then depends+=('raspberrypi-firmware') else depends+=('libgl') fi source=('git://github.com/RetroPie/EmulationStation.git' 'git://github.com/zeux/pugixml.git') md5sums=('SKIP' 'SKIP') provides=('emulationstation') pkgver() { cd $srcdir/$_gitname printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd "$srcdir/$_gitname" git submodule init git config submodule.external/pugixml.url $srcdir/pugixml git submodule update } build() { cd "$srcdir/$_gitname" mkdir -p "$srcdir/$_gitname/build" cd "$srcdir/$_gitname/build" cmake .. make } package() { cd $_gitname install -Dm755 "$srcdir/$_gitname/emulationstation" "$pkgdir/usr/bin/emulationstation" install -Dm644 "$srcdir/$_gitname/LICENSE.md" "$pkgdir/usr/share/licenses/emulationstation-git/LICENSE" rm -r "$srcdir" }