[arch-commits] Commit in diskonaut/repos (community-x86_64 community-x86_64/PKGBUILD)

Kpcyrd kpcyrd at gemini.archlinux.org
Tue Apr 19 18:20:19 UTC 2022


    Date: Tuesday, April 19, 2022 @ 18:20:19
  Author: kpcyrd
Revision: 1187091

archrelease: copy trunk to community-x86_64

Added:
  diskonaut/repos/community-x86_64/
  diskonaut/repos/community-x86_64/PKGBUILD
    (from rev 1187090, diskonaut/trunk/PKGBUILD)

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

Copied: diskonaut/repos/community-x86_64/PKGBUILD (from rev 1187090, diskonaut/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-04-19 18:20:19 UTC (rev 1187091)
@@ -0,0 +1,37 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+
+pkgname=diskonaut
+pkgver=0.11.0
+pkgrel=2
+pkgdesc="TUI disk space navigator written in rust"
+arch=('x86_64')
+url="https://github.com/imsnif/diskonaut"
+license=('MIT')
+makedepends=('cargo')
+source=(https://github.com/imsnif/${pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+b2sums=('20d4fbd713c82dd19901574361d80161e717eaefcf4568a9b1b52723f235b94999dc1579ad37461013661de7be569e7608a0c63de576bf9fa59d6d897f725aa6')
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  cargo build --frozen --release
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  cargo test --frozen
+}
+
+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 -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list