blob: 3fac3f8180b2daeb7b7b024e11e445cc8e191018 (
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: quenyen
pkgname=weatherreport
pkgver=1.2.0
pkgrel=2
pkgdesc="A command line tool to get the current weather conditions."
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url="https://gitlab.com/chrisfair/weatherreport"
license=('GPL')
depends=(
'libalpm.so>=12'
'sudo'
'git'
)
makedepends=(
'go'
)
source=("https://gitlab.com/chrisfair/${pkgname}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
sha256sums=('497314590ad74041c8ae802c24d2720337e911aaaeadf6da016f0f1d92ea3863')
build() {
export GOPATH="$srcdir"/gopath
cd "$srcdir/$pkgname-v$pkgver"
go get github.com/mmcdole/gofeed
go get github.com/araddon/dateparse
go get gitlab.com/chrisfair/accuweather
go build
}
package() {
cd "$srcdir/$pkgname-v$pkgver"
install -D $pkgname-v$pkgver $pkgdir/usr/bin/$pkgname
}
|