summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey A2020-11-12 23:20:57 +0300
committerSergey A2020-11-12 23:23:03 +0300
commit068d2773efd24cd1115211bdca048d328527c44c (patch)
treeef94cd626bbdce6e37ea2a371f1e4a1b1dae6e2e
parent10fed9e881ad9524d94ec0fb4845a41cc0c23ac1 (diff)
downloadaur-068d2773efd24cd1115211bdca048d328527c44c.tar.gz
Switch to .deb as a source
Thanks to sumwale for the idea: https://aur.archlinux.org/packages/zenith-bin/#comment-772867
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD24
2 files changed, 24 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 01d2d9ce64d..ba91a0168e4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
pkgbase = zenith-bin
pkgdesc = Terminal system monitor with histograms, written in Rust
pkgver = 0.11.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/bvaisvil/zenith
arch = x86_64
license = MIT
+ optdepends = nvidia-utils
provides = zenith
conflicts = zenith
- source = zenith-bin-0.11.0.tar.gz::https://github.com/bvaisvil/zenith/releases/download/0.11.0/zenith.x86_64-unknown-linux-musl.tgz
- md5sums = 0814b0809177b95092eb667837d31b25
+ source = https://dl.bintray.com/bvaisvil/debian/pool/z/zenith/zenith_0.11.0-1_amd64.deb
+ sha256sums = 6966a0673ea7de1fd1f113a86ee7e79e3083220c9153ebf8d212b5ae0e1ad8cd
pkgname = zenith-bin
diff --git a/PKGBUILD b/PKGBUILD
index f320d4e1e41..78c8f2db0f7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,16 +2,32 @@
pkgname=zenith-bin
pkgver=0.11.0
-pkgrel=1
+pkgrel=2
pkgdesc="Terminal system monitor with histograms, written in Rust"
arch=('x86_64')
url="https://github.com/bvaisvil/zenith"
license=('MIT')
provides=('zenith')
conflicts=('zenith')
-source=("$pkgname-$pkgver.tar.gz::$url/releases/download/$pkgver/zenith.x86_64-unknown-linux-musl.tgz")
-md5sums=('0814b0809177b95092eb667837d31b25')
+optdepends=('nvidia-utils')
+source=('https://dl.bintray.com/bvaisvil/debian/pool/z/zenith/zenith_0.11.0-1_amd64.deb')
+sha256sums=('6966a0673ea7de1fd1f113a86ee7e79e3083220c9153ebf8d212b5ae0e1ad8cd')
package() {
- install -Dm 755 "zenith" "$pkgdir/usr/bin/zenith"
+ # extract package data
+ tar xf "data.tar.xz"
+
+ # launch script
+ install -D -m755 {,"$pkgdir"/}usr/bin/zenith
+
+ # binaries
+ install -d "$pkgdir"/usr/lib/zenith
+ cp -a usr/lib/zenith "$pkgdir"/usr/lib
+
+ # license
+ install -D -m644 'usr/share/doc/zenith/copyright' "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # desktop icon and entry
+ install -D -m644 {,"$pkgdir"/}usr/share/pixmaps/zenith.png
+ install -D -m644 {,"$pkgdir"/}usr/share/applications/zenith.desktop
}