diff options
author | Alessio Biancalana | 2020-12-15 18:01:26 +0100 |
---|---|---|
committer | Alessio Biancalana | 2020-12-15 18:01:26 +0100 |
commit | 4f21ba24122ece060955cee529cfe9d772a9139b (patch) | |
tree | 37ccb82cbb01a4afbf94622ee9276a35f522d191 /PKGBUILD | |
parent | 022ab7182837a75f2ae75e55b3217c77380a5368 (diff) | |
download | aur-4f21ba24122ece060955cee529cfe9d772a9139b.tar.gz |
Version 2.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 8 insertions, 17 deletions
@@ -1,30 +1,21 @@ # Maintainer: Alessio Biancalana <dottorblaster@gmail.com> pkgname=pacnews -pkgver=1.0.0 +pkgver=2.0.0 pkgrel=1 -pkgdesc="Read Arch News from your CLI" +pkgdesc="Read Arch Linux News from your CLI" arch=('i686' 'x86_64') license=('MIT') url="https://github.com/dottorblaster/pacnews" -makedepends=('go' 'git') +makedepends=('rust') source=("https://github.com/dottorblaster/$pkgname/archive/v${pkgver}.tar.gz") -md5sums=('3a78d8da47d5552b00966c330d16d08b') +md5sums=('1e2dbf0654c11ff149a60dbea8591382') build() { - cd "$srcdir/$pkgname-$pkgver" - - rm -rf "$srcdir/.go/src" - mkdir -p "$srcdir/.go/src" - export GOPATH="$srcdir/.go" - - go get github.com/fatih/color - go get github.com/SlyMarbo/rss - go get github.com/kennygrant/sanitize - - go build pacnews.go + cd "$srcdir/$pkgname-$pkgver" + cargo build --release } package() { - cd "$srcdir/$pkgname-$pkgver" - install -DT "pacnews" "$pkgdir/usr/bin/pacnews" + cd "$srcdir/$pkgname-$pkgver" + install -DT "target/release/pacnews" "$pkgdir/usr/bin/pacnews" } |