summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlessio Biancalana2020-12-15 18:01:26 +0100
committerAlessio Biancalana2020-12-15 18:01:26 +0100
commit4f21ba24122ece060955cee529cfe9d772a9139b (patch)
tree37ccb82cbb01a4afbf94622ee9276a35f522d191 /PKGBUILD
parent022ab7182837a75f2ae75e55b3217c77380a5368 (diff)
downloadaur-4f21ba24122ece060955cee529cfe9d772a9139b.tar.gz
Version 2.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 8 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a5655880fcab..423ceb8f695a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"
}