summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6061e67add8f1e5db94cf4d118511e0e7b785791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Benjamin Hodgetts <ben@xnode.org>
# Contributor: Johnathan Jenkins <twodopeshaggy@gmail.com>
# Contributor: Drew Liszewski <drew dot liszewski at gmail dot com>
# Contributor: Daniel Varga <varga dot daniel at gmx dot de>

pkgname=emulationstation-ex-git
_gitname=EmulationStation
pkgrel=1
pkgver=1275.0928498
pkgdesc="A graphical front-end for emulators with controller navigation."
arch=('i686' 'x86_64')
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' 'libgl')
source=('git+https://github.com/RetroPie/EmulationStation.git' 'git+https://github.com/zeux/pugixml.git')
md5sums=('SKIP' 'SKIP')
provides=('emulationstation')
conflicts=('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"
}