[arch-commits] Commit in onefetch/repos (2 files)

Caleb Maclennan alerque at gemini.archlinux.org
Sat Nov 20 22:57:19 UTC 2021


    Date: Saturday, November 20, 2021 @ 22:57:19
  Author: alerque
Revision: 1052908

archrelease: copy trunk to community-staging-x86_64

Added:
  onefetch/repos/community-staging-x86_64/
  onefetch/repos/community-staging-x86_64/PKGBUILD
    (from rev 1052907, onefetch/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: onefetch/repos/community-staging-x86_64/PKGBUILD (from rev 1052907, onefetch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-20 22:57:19 UTC (rev 1052908)
@@ -0,0 +1,41 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Stephen Gregoratto <dev at sgregoratto.me>
+# Contributor: Ossama Hjaji <ossama-hjaji at live.fr>
+
+pkgname=onefetch
+pkgver=2.10.2
+pkgrel=3
+pkgdesc="Git repository summary on your terminal"
+url="https://github.com/o2sh/onefetch"
+license=('MIT')
+arch=('x86_64')
+depends=('libgit2' 'libgit2.so')
+makedepends=('rust')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('6e4d4effcd4fd94ce21625a5e32da5da6446c8874200e40dd791e623b7aff7bb')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --frozen --release --all-features
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --frozen --all-features
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
+  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+  install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
+  install -Dm 644 "docs/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list