blob: f048b2a494dd91507259c84a0cb8470f6ecc2f84 (
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
|
pkgname=zenith-git
pkgver=r364.3400294
pkgrel=1
pkgdesc='In terminal graphical metrics for your *nix system written in Rust'
arch=('x86_64')
url='https://github.com/bvaisvil/zenith'
license=('MIT')
depends=()
makedepends=('git' 'rust')
provides=('zenith')
conflicts=('zenith' 'zenith-bin')
source=("git+https://github.com/bvaisvil/zenith.git")
md5sums=("SKIP")
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
make
}
package() {
cd "$srcdir/${pkgname%-git}"
make install PREFIX=/usr DESTDIR="${pkgdir}"
install -D -m 644 README.md "${pkgdir}/usr/share/doc/zenith/README.md"
}
|