diff options
author | Christopher Patrick Fair | 2020-05-04 23:03:05 -0600 |
---|---|---|
committer | Christopher Patrick Fair | 2020-05-04 23:15:38 -0600 |
commit | c719f71c1b932f117859fc1d216b71b89a645f8a (patch) | |
tree | 7e2b48e543cc11332c3789d38054423c03de367a /PKGBUILD | |
download | aur-c719f71c1b932f117859fc1d216b71b89a645f8a.tar.gz |
Initial pkgbuild
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..96219c20c6b0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: quenyen +pkgname=weatherreport +pkgver=1.0.0 +pkgrel=1 +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=('e2ffe6f0bbd7d4501ff945f847693c7114717d8846f14b38c399328855a802c8') + +build() { + export GOPATH="$srcdir"/gopath + cd "$srcdir/$pkgname-v$pkgver" + go get github.com/mmcdole/gofeed + go build +} + +package() { + cd "$srcdir/$pkgname-v$pkgver" + install -D $pkgname-v$pkgver $pkgdir/usr/bin/$pkgname +} + |