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

Orhun Parmaksiz orhun at archlinux.org
Sat May 8 22:52:47 UTC 2021


    Date: Saturday, May 8, 2021 @ 22:52:47
  Author: orhun
Revision: 928947

archrelease: copy trunk to community-x86_64

Added:
  xplr/repos/community-x86_64/
  xplr/repos/community-x86_64/PKGBUILD
    (from rev 928946, xplr/trunk/PKGBUILD)

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

Copied: xplr/repos/community-x86_64/PKGBUILD (from rev 928946, xplr/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-05-08 22:52:47 UTC (rev 928947)
@@ -0,0 +1,38 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+
+pkgname=xplr
+pkgver=0.7.2
+pkgrel=1
+pkgdesc="A hackable, minimal, fast TUI file explorer"
+arch=('x86_64')
+url="https://github.com/sayanarijit/xplr"
+license=('MIT')
+depends=('gcc-libs' 'hicolor-icon-theme')
+makedepends=('rust')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('d5f44790a02829b4eea8cc96f655cbfe740bd9ef053059f79cdc54373ce42070734765325c8c79a93e58af3409c4ba85ff2b7ff2ed9947b8a71d2f3cd428adbd')
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --locked --release
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --locked --release
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+  install -Dm 644 src/config.yml -t "$pkgdir/usr/share/$pkgname/examples"
+  install -Dm 644 "assets/desktop/$pkgname.desktop" -t "$pkgdir/usr/share/applications"
+  for i in 128 16 32 64; do
+      install -Dm 644 "assets/icon/${pkgname}${i}.png" "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"
+  done
+  install -Dm 644 "assets/icon/$pkgname.svg" -t "$pkgdir/usr/share/icons/hicolor/scalable/apps"
+}
+
+# vim:set ts=2 sw=2 et:
\ No newline at end of file



More information about the arch-commits mailing list