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

Felix Yan felixonmars at gemini.archlinux.org
Fri Aug 19 08:38:33 UTC 2022


    Date: Friday, August 19, 2022 @ 08:38:33
  Author: felixonmars
Revision: 1269647

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: onefetch/repos/community-staging-x86_64/PKGBUILD (from rev 1269646, onefetch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-19 08:38:33 UTC (rev 1269647)
@@ -0,0 +1,42 @@
+# 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.12.0
+pkgrel=2
+pkgdesc="Git repository summary on your terminal"
+url="https://github.com/o2sh/onefetch"
+license=('MIT')
+arch=('x86_64')
+depends=('libgit2' 'libgit2.so')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('f57b16dfa2bb95dd1fb805257a1761baa20d69eb9ce7c311d369609894c53897')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  CFLAGS+=' -ffat-lto-objects'
+  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