summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c52d00bbac49abb4b5f6384ed55403e06b3a14e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer:  Oliver Jaksch <arch-aur@com-in.de>

pkgname=emulationstation-autoscraper
pkgver=190.3492190
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"
}