update all the packages, remove some unneeded ones

This commit is contained in:
moparisthebest
2018-06-01 08:08:14 -04:00
parent 1ac473c02c
commit 9fce20fc6d
142 changed files with 2965 additions and 1333 deletions

View File

@@ -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
}