From 880600f59d96a3a4bc6f66d728bebbd3c5c929d1 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Mon, 2 Jan 2017 18:21:39 -0500 Subject: [PATCH] Add emulationstation packages --- src/emulationstation-autoscraper/.SRCINFO | 20 ++++++++++++ src/emulationstation-autoscraper/PKGBUILD | 32 +++++++++++++++++++ src/emulationstation-themes/.SRCINFO | 13 ++++++++ src/emulationstation-themes/PKGBUILD | 21 ++++++++++++ .../emulationstation-themes.install | 9 ++++++ 5 files changed, 95 insertions(+) create mode 100644 src/emulationstation-autoscraper/.SRCINFO create mode 100644 src/emulationstation-autoscraper/PKGBUILD create mode 100644 src/emulationstation-themes/.SRCINFO create mode 100644 src/emulationstation-themes/PKGBUILD create mode 100644 src/emulationstation-themes/emulationstation-themes.install diff --git a/src/emulationstation-autoscraper/.SRCINFO b/src/emulationstation-autoscraper/.SRCINFO new file mode 100644 index 0000000..c861db8 --- /dev/null +++ b/src/emulationstation-autoscraper/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Wed Oct 5 08:57:13 UTC 2016 +pkgbase = emulationstation-autoscraper + pkgdesc = An auto-scraper for EmulationStation written in Go using hashes + pkgver = 196.81feb49 + pkgrel = 1 + url = https://github.com/sselph/scraper + arch = i686 + arch = x86_64 + arch = arm + arch = armv6h + arch = armv7h + license = custom + makedepends = git + makedepends = go + source = https://raw.githubusercontent.com/sselph/scraper/master/LICENSE + sha256sums = SKIP + +pkgname = emulationstation-autoscraper + diff --git a/src/emulationstation-autoscraper/PKGBUILD b/src/emulationstation-autoscraper/PKGBUILD new file mode 100644 index 0000000..5be0671 --- /dev/null +++ b/src/emulationstation-autoscraper/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Oliver Jaksch + +pkgname=emulationstation-autoscraper +pkgver=196.81feb49 +pkgrel=1 +pkgdesc="An auto-scraper for EmulationStation written in Go using hashes" +arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') +url="https://github.com/sselph/scraper" +license=('custom') +makedepends=('git' 'go') + +source=("https://raw.githubusercontent.com/sselph/scraper/master/LICENSE") +sha256sums=('SKIP') + +build() { + cd "${srcdir}" + export GOPATH="${srcdir}" + echo $(go get github.com/sselph/scraper) + echo $(go build github.com/sselph/scraper) +} + +package() { + strip "${srcdir}/scraper" + install -Dm755 "${srcdir}/scraper" "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 "${srcdir}/src/github.com/sselph/scraper/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt" + install -Dm644 "${srcdir}/src/github.com/nfnt/resize/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/license-resize.txt" + install -Dm644 "${srcdir}/src/github.com/golang/snappy/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/license-snappy.txt" + install -Dm644 "${srcdir}/src/github.com/syndtr/goleveldb/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/license-goleveldb.txt" + install -Dm644 "${srcdir}/src/github.com/hashicorp/golang-lru/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/license-golang-lru.txt" + install -Dm644 "${srcdir}/src/github.com/mitchellh/go-homedir/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/license-go-homedir.txt" + install -Dm644 "${srcdir}/src/github.com/kr/fs/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/license-fs.txt" +} diff --git a/src/emulationstation-themes/.SRCINFO b/src/emulationstation-themes/.SRCINFO new file mode 100644 index 0000000..fede528 --- /dev/null +++ b/src/emulationstation-themes/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = emulationstation-themes + pkgdesc = EmulationStation themes pack + pkgver = 0.1 + pkgrel = 1 + url = http://aloshi.com/emulationstation + install = emulationstation-themes.install + arch = any + license = WTFPL + source = emulationstation-themes-0.1.zip::http://www.aloshi.com/es_downloads/es_themes_jan_20_2013.zip + md5sums = d72d30690bce0f00ca6c276bbc5ff816 + +pkgname = emulationstation-themes + diff --git a/src/emulationstation-themes/PKGBUILD b/src/emulationstation-themes/PKGBUILD new file mode 100644 index 0000000..9edfdca --- /dev/null +++ b/src/emulationstation-themes/PKGBUILD @@ -0,0 +1,21 @@ +# Contributor: Drew Liszewski +# Maintainer: Drew Liszewski +pkgname=emulationstation-themes +pkgver=0.1 +pkgrel=1 +pkgdesc="EmulationStation themes pack" +arch=('any') +url="http://aloshi.com/emulationstation" +license=('WTFPL') +groups=() +makedepends=() +depends=() +install='emulationstation-themes.install' +source=("${pkgname}-${pkgver}.zip::http://www.aloshi.com/es_downloads/es_themes_jan_20_2013.zip") +md5sums=('d72d30690bce0f00ca6c276bbc5ff816') + +package() { + cd "${srcdir}" + install -d ${pkgdir}/usr/share/EmulationStation/themes + cp -r ${srcdir}/* ${pkgdir}/usr/share/EmulationStation/themes/ +} diff --git a/src/emulationstation-themes/emulationstation-themes.install b/src/emulationstation-themes/emulationstation-themes.install new file mode 100644 index 0000000..857c9b5 --- /dev/null +++ b/src/emulationstation-themes/emulationstation-themes.install @@ -0,0 +1,9 @@ +post_install() { + echo "Make symbolic links to relevant themes from /usr/share/EmulationStation/themes to ~/.emulationstation" + echo "Example: ln -s /usr/share/EmulationStation/themes/snes ~/.emulationstation/" + echo +} + +post_upgrade () { + post_install +}