[arch-commits] Commit in (kmon kmon/repos kmon/trunk kmon/trunk/PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Wed Jul 29 23:38:06 UTC 2020
Date: Wednesday, July 29, 2020 @ 23:38:05
Author: eschwartz
Revision: 665856
addpkg: kmon 1.3.4-2: from AUR, 18 votes
Added:
kmon/
kmon/repos/
kmon/trunk/
kmon/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Added: kmon/trunk/PKGBUILD
===================================================================
--- kmon/trunk/PKGBUILD (rev 0)
+++ kmon/trunk/PKGBUILD 2020-07-29 23:38:05 UTC (rev 665856)
@@ -0,0 +1,35 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: orhun <orhunparmaksiz at gmail.com>
+
+pkgname=kmon
+pkgver=1.3.4
+pkgrel=2
+pkgdesc="Linux kernel manager and activity monitor"
+arch=('x86_64')
+url="https://github.com/orhun/kmon"
+license=('GPL3')
+depends=('kmod' 'libxcb')
+makedepends=('cargo' 'python' 'git')
+source=("git+${url}.git#tag=v${pkgver}?signed")
+sha512sums=('SKIP')
+validpgpkeys=('39E678DF63BE20EA5A175156B928720AEC532117') # orhun <orhunparmaksiz at gmail.com>
+
+build() {
+ cd "${srcdir}"/${pkgname}
+
+ cargo build --release --locked --all-features
+}
+
+check() {
+ cd "${srcdir}"/${pkgname}
+
+ cargo test --release --locked
+}
+
+package() {
+ cd "${srcdir}"/${pkgname}
+
+ install -Dm755 target/release/${pkgname} -t "${pkgdir}"/usr/bin
+ install -Dm644 README.md -t "${pkgdir}"/usr/share/doc/${pkgname}
+ install -Dm644 man/${pkgname}.8 -t "${pkgdir}"/usr/share/man/man8
+}
More information about the arch-commits
mailing list