aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorTaner Tas <taner76@gmail.com>2018-07-27 18:56:59 +0300
committerNatanael Copa <ncopa@alpinelinux.org>2018-07-31 12:41:26 +0000
commitf6da3234771aba91daeb20415e8d89d71fa1bb8b (patch)
treef6b790e79ada72c3837ebdd32ee86fcb2590c284 /testing
parent177614ea29fe0b3df11039d73420c36da15e4352 (diff)
downloadaports-f6da3234771aba91daeb20415e8d89d71fa1bb8b.tar.bz2
aports-f6da3234771aba91daeb20415e8d89d71fa1bb8b.tar.xz
testing/emulationstation: new aport
https://github.com/RetroPie/EmulationStation EmulationStation is a cross-platform graphical front-end for emulators with controller navigation.
Diffstat (limited to 'testing')
-rw-r--r--testing/emulationstation/APKBUILD69
-rw-r--r--testing/emulationstation/default-paths.patch22
-rw-r--r--testing/emulationstation/emulationstation.desktop10
-rw-r--r--testing/emulationstation/emulationstation.pngbin0 -> 4870 bytes
4 files changed, 101 insertions, 0 deletions
diff --git a/testing/emulationstation/APKBUILD b/testing/emulationstation/APKBUILD
new file mode 100644
index 0000000000..2867ca506e
--- /dev/null
+++ b/testing/emulationstation/APKBUILD
@@ -0,0 +1,69 @@
+# Contributor: Taner Tas <taner76@gmail.com>
+# Maintainer: Taner Tas <taner76@gmail.com>
+pkgname=emulationstation
+_pkgname="EmulationStation"
+pkgver=2.7.1
+pkgrel=0
+pkgdesc="EmulationStation is a cross-platform graphical front-end for emulators with controller navigation."
+url="https://github.com/RetroPie/EmulationStation"
+arch="all"
+license="MIT"
+makedepends="boost-dev freeimage-dev freetype-dev sdl2-dev mesa-dev alsa-lib-dev vlc-dev curl-dev cmake"
+_theme_name="gbz35"
+_theme_commit="49176c4b3dbe103da84bd29ef474fd3c9f60a8de"
+_pugixml_commit="f3139f4c0487a7455d66d4dcd3b0aab3d54c63d1"
+subpackages="$pkgname-theme-$_theme_name:theme:noarch"
+options="!check" # No test suite
+
+source="$pkgname-$pkgver.tar.gz::https://github.com/RetroPie/$_pkgname/archive/v$pkgver.tar.gz
+ $pkgname-theme-$_theme_name-$_theme_commit.tar.gz::https://github.com/rxbrad/es-theme-$_theme_name/archive/$_theme_commit.tar.gz
+ pugixml-$_pugixml_commit.tar.gz::https://github.com/zeux/pugixml/archive/$_pugixml_commit.tar.gz
+ default-paths.patch
+ emulationstation.desktop
+ emulationstation.png"
+builddir="$srcdir"/$_pkgname-$pkgver
+
+prepare() {
+ cd "$builddir"
+ if [ ! -d external/pugixml.dist ]; then
+ mv -f external/pugixml external/pugixml.dist
+ cp -aP "$srcdir"/pugixml-$_pugixml_commit external/pugixml
+ fi
+ default_prepare
+}
+
+build() {
+ cd "$builddir"
+ cmake .
+ make
+}
+
+package() {
+ depends="$pkgname-theme-default"
+ cd "$builddir"
+ mkdir -p "$pkgdir"/usr/bin
+ mkdir -p "$pkgdir"/usr/share/pixmaps
+ mkdir -p "$pkgdir"/usr/share/applications
+ mkdir -p "$pkgdir"/usr/share/$pkgname/gamelists
+ mkdir -p "$pkgdir"/usr/share/$pkgname/themes
+ install -Dm755 emulationstation "$pkgdir"/usr/bin/emulationstation
+ install -Dm644 "$srcdir"/$pkgname.png "$pkgdir"/usr/share/pixmaps/
+ install -Dm644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications/
+}
+
+theme() {
+ pkgdesc="$_theme_name theme for $_pkgname"
+ license="CC-BY-NC-SA-3.0"
+ url="https://github.com/rxbrad/es-theme-gbz35"
+ provides="$pkgname-theme-default"
+
+ install -d -m755 "$subpkgdir"/usr/share/$pkgname/themes
+ cp -r "$srcdir"/es-theme-$_theme_name-$_theme_commit \
+ "$subpkgdir"/usr/share/$pkgname/themes/$_theme_name
+}
+sha512sums="a9501a2f69d5f828316bde9660638beed402535796bf63179bdabffac86da6ef4a280ea35993270fd932db918d80cd961bfe6522af72b61387e913b092d696b6 emulationstation-2.7.1.tar.gz
+012beb7511e54786911de21b092b6c271aef44ac196b6c3a1e6be3eb6dad5cedef41ed1ae2652befc9486c851eca75dc025da42e0c59e5656adf5c02b3148d95 emulationstation-theme-gbz35-49176c4b3dbe103da84bd29ef474fd3c9f60a8de.tar.gz
+bc6ab2f39c7414e5baca2917710a7e5e280aef2562afeec93adcb01424512fba6682531e8fd9b9e5e6e08841433e5e390e832560400bafafd3b45ff9355f43ad pugixml-f3139f4c0487a7455d66d4dcd3b0aab3d54c63d1.tar.gz
+3c0fe93a76fe2f702cdc1870ebfe12b3305ba24a75e90ea6dde6d479c654f662d210e5b35ce3451f3f03902ebbaeb27d117e8ca94f5b117748bcd286f37bae39 default-paths.patch
+814a196d234266809f2c3f64c7179e3138e017eb67d1c54dcc2e8c504c1439cb73f17352575cd582ce044b08405f3a369d049127c9f4c5a1336072435dfa54f0 emulationstation.desktop
+4a24c435aeef22d7d69c3af113bff97c2c99b4a1eb2e5c97f53a6cce1f11a4f92bf4250388598a89f8fd462e03ea6fc73b75739573faf6f7b30c98ab53ddb5bf emulationstation.png"
diff --git a/testing/emulationstation/default-paths.patch b/testing/emulationstation/default-paths.patch
new file mode 100644
index 0000000000..d150ba19c6
--- /dev/null
+++ b/testing/emulationstation/default-paths.patch
@@ -0,0 +1,22 @@
+--- a/es-core/src/ThemeData.cpp
++++ b/es-core/src/ThemeData.cpp
+@@ -538,7 +538,7 @@
+
+ static const size_t pathCount = 2;
+ fs::path paths[pathCount] = {
+- "/etc/emulationstation/themes",
++ "/usr/share/emulationstation/themes",
+ getHomePath() + "/.emulationstation/themes"
+ };
+
+--- a/es-app/src/SystemData.cpp
++++ b/es-app/src/SystemData.cpp
+@@ -397,7 +397,7 @@
+ if(forWrite || fs::exists(filePath))
+ return filePath.generic_string();
+
+- return "/etc/emulationstation/gamelists/" + mName + "/gamelist.xml";
++ return "/usr/share/emulationstation/gamelists/" + mName + "/gamelist.xml";
+ }
+
+ std::string SystemData::getThemePath() const
diff --git a/testing/emulationstation/emulationstation.desktop b/testing/emulationstation/emulationstation.desktop
new file mode 100644
index 0000000000..b625f3bac5
--- /dev/null
+++ b/testing/emulationstation/emulationstation.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=EmulationStation
+GenericName=EmulationStation
+Comment=Emulator & App launcher frontend
+Exec=emulationstation
+Icon=emulationstation.png
+Terminal=false
+Type=Application
+StartupNotify=false
+Categories=Game;Emulator;
diff --git a/testing/emulationstation/emulationstation.png b/testing/emulationstation/emulationstation.png
new file mode 100644
index 0000000000..251686c076
--- /dev/null
+++ b/testing/emulationstation/emulationstation.png
Binary files differ