diff options
author | Oliver Jaksch | 2018-02-27 17:08:09 +0100 |
---|---|---|
committer | Oliver Jaksch | 2018-02-27 17:08:09 +0100 |
commit | 962d89fcdb9af4244b7adbb35119dc28e6848bd6 (patch) | |
tree | dcd8273e063e376903e1c473f05ae3339a34f744 | |
parent | 6f191b11f1cffb3be22ec5f0550b81f485df02f6 (diff) | |
download | aur-962d89fcdb9af4244b7adbb35119dc28e6848bd6.tar.gz |
Update and switching to RELEASE
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 17 insertions, 15 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Fri Sep 22 09:43:19 UTC 2017 +# Tue Feb 27 16:08:09 UTC 2018 pkgbase = emulationstation-autoscraper pkgdesc = An auto-scraper for EmulationStation written in Go using hashes - pkgver = 273.ca24b2b + pkgver = 1.4.5 pkgrel = 1 url = https://github.com/sselph/scraper arch = i686 @@ -13,8 +13,8 @@ pkgbase = emulationstation-autoscraper license = custom makedepends = git makedepends = go - source = https://raw.githubusercontent.com/sselph/scraper/master/LICENSE - sha256sums = SKIP + source = https://github.com/sselph/scraper/archive/v1.4.5.tar.gz + sha256sums = 5e7496b7634126f5be81fdd88a20fe108f40d4a8a0089b2d07ae82ea2cea812c pkgname = emulationstation-autoscraper @@ -1,7 +1,7 @@ # Maintainer: Oliver Jaksch <arch-aur@com-in.de> pkgname=emulationstation-autoscraper -pkgver=273.ca24b2b +pkgver=1.4.5 pkgrel=1 pkgdesc="An auto-scraper for EmulationStation written in Go using hashes" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') @@ -9,22 +9,24 @@ url="https://github.com/sselph/scraper" license=('custom') makedepends=('git' 'go') -source=("https://raw.githubusercontent.com/sselph/scraper/master/LICENSE") -sha256sums=('SKIP') +source=("https://github.com/sselph/scraper/archive/v${pkgver}.tar.gz") +sha256sums=('5e7496b7634126f5be81fdd88a20fe108f40d4a8a0089b2d07ae82ea2cea812c') + +scraperdir="scraper-${pkgver}" build() { - cd "${srcdir}" - export GOPATH="${srcdir}" - echo $(go get github.com/sselph/scraper) + cd "${srcdir}/${scraperdir}" + echo $arch 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" - for LIC in $(find ./src/github.com/sselph/scraper/vendor/github.com -name LICENSE); do + cd "${srcdir}/${scraperdir}" + strip "scraper" + install -Dm755 "${srcdir}/${scraperdir}/scraper" "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 "${srcdir}/${scraperdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt" + for LIC in $(find 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}" + install -Dm644 "${srcdir}/${scraperdir}/${LIC}" "${pkgdir}/usr/share/licenses/${pkgname}/license.${PKGNAME}" done } |