[arch-commits] Commit in (4 files)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Sat Apr 16 09:35:35 UTC 2022
Date: Saturday, April 16, 2022 @ 09:35:34
Author: orhun
Revision: 1186652
addpkg: systeroid 0.1.0-1
Added:
systeroid/
systeroid/repos/
systeroid/trunk/
systeroid/trunk/PKGBUILD
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Added: systeroid/trunk/PKGBUILD
===================================================================
--- systeroid/trunk/PKGBUILD (rev 0)
+++ systeroid/trunk/PKGBUILD 2022-04-16 09:35:34 UTC (rev 1186652)
@@ -0,0 +1,40 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+
+pkgname=systeroid
+pkgver=0.1.0
+pkgrel=1
+pkgdesc="A more powerful alternative to sysctl"
+arch=('x86_64')
+url="https://github.com/orhun/systeroid"
+license=('MIT' 'Apache')
+depends=('libxcb' 'libxkbcommon' 'linux-docs')
+makedepends=('cargo' 'python')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('77015e4b02dbbb00b7cb05f33a89fc8407b4e089e0286f1d94efbdf75961c9bf37742b71fbc2dfbca1c412735fb761278df42b581ed7c06efc2ec73bfe486ecc')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release --frozen
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ NO_COLOR=1 cargo test --frozen --no-default-features
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+ install -Dm 755 "target/release/$pkgname-tui" -t "$pkgdir/usr/bin"
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm 644 "man8/$pkgname.8" -t "$pkgdir/usr/share/man/man8"
+ install -Dm 644 "man8/$pkgname-tui.8" -t "$pkgdir/usr/share/man/man8"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list