summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Jaksch2017-05-13 06:50:51 +0200
committerOliver Jaksch2017-05-13 06:50:51 +0200
commit4946b169aff46fabba88b309ef394cc82c9cc743 (patch)
tree6161a68356d52257ea62acd178bb4fc8dc706b14
parent9848c1552f6aa983d115d3070c76f9041f7d402a (diff)
downloadaur-4946b169aff46fabba88b309ef394cc82c9cc743.tar.gz
Modernize scraper (#149)
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD12
2 files changed, 7 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d5d3e16fc7f..5595a1bb8f9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Sun Apr 9 04:28:56 UTC 2017
+# Sat May 13 04:50:51 UTC 2017
pkgbase = emulationstation-autoscraper
pkgdesc = An auto-scraper for EmulationStation written in Go using hashes
- pkgver = 241.f132e6a
+ pkgver = 246.7bce4f9
pkgrel = 1
url = https://github.com/sselph/scraper
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 86e1237575e..cde58255a3f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Oliver Jaksch <arch-aur@com-in.de>
pkgname=emulationstation-autoscraper
-pkgver=241.f132e6a
+pkgver=246.7bce4f9
pkgrel=1
pkgdesc="An auto-scraper for EmulationStation written in Go using hashes"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
@@ -23,10 +23,8 @@ 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"
+ for LIC in $(find ./src/github.com/sselph/scraper/vendor/github.com -name LICENSE); do
+ PKGNAME="$(echo ${LIC} | awk -F "/" '{print $(NF-1)}')"
+ install -Dm644 "${srcdir}/${LIC}" "${pkgdir}/usr/share/licenses/${pkgname}/license.${PKGNAME}"
+ done
}