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

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


    Date: Saturday, May 8, 2021 @ 22:52:34
  Author: orhun
Revision: 928946

addpkg: xplr 0.7.2-1

Added:
  xplr/
  xplr/repos/
  xplr/trunk/
  xplr/trunk/PKGBUILD

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

Added: xplr/trunk/PKGBUILD
===================================================================
--- xplr/trunk/PKGBUILD	                        (rev 0)
+++ xplr/trunk/PKGBUILD	2021-05-08 22:52:34 UTC (rev 928946)
@@ -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