mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
28 lines
653 B
YAML
28 lines
653 B
YAML
|
distributable:
|
||
|
url: https://github.com/gosom/google-maps-scraper/archive/v{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
versions:
|
||
|
github: gosom/google-maps-scraper
|
||
|
dependencies:
|
||
|
curl.se/ca-certs: '*'
|
||
|
build:
|
||
|
dependencies:
|
||
|
go.dev: ^1.21.1
|
||
|
script:
|
||
|
- go build $GO_ARGS -ldflags="$LDFLAGS" .
|
||
|
env:
|
||
|
GO_ARGS:
|
||
|
- -trimpath
|
||
|
- -o="{{prefix}}/bin/google-maps-scraper"
|
||
|
LDFLAGS:
|
||
|
- -s
|
||
|
- -w
|
||
|
linux:
|
||
|
LDFLAGS:
|
||
|
- -buildmode=pie
|
||
|
provides:
|
||
|
- bin/google-maps-scraper
|
||
|
test:
|
||
|
- google-maps-scraper -input example-queries.txt -json -results restaurants.json -exit-on-inactivity 3m
|
||
|
- ls | grep restaurants.json
|