[arch-commits] Commit in rpg-cli/repos (3 files)

Orhun Parmaksiz orhun at gemini.archlinux.org
Tue Aug 10 13:03:26 UTC 2021


    Date: Tuesday, August 10, 2021 @ 13:03:26
  Author: orhun
Revision: 997374

archrelease: copy trunk to community-x86_64

Added:
  rpg-cli/repos/community-x86_64/
  rpg-cli/repos/community-x86_64/PKGBUILD
    (from rev 997373, rpg-cli/trunk/PKGBUILD)
  rpg-cli/repos/community-x86_64/rpg-cli.sh
    (from rev 997373, rpg-cli/trunk/rpg-cli.sh)

------------+
 PKGBUILD   |   39 +++++++++++++++++++++++++++++++++++++++
 rpg-cli.sh |   10 ++++++++++
 2 files changed, 49 insertions(+)

Copied: rpg-cli/repos/community-x86_64/PKGBUILD (from rev 997373, rpg-cli/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-08-10 13:03:26 UTC (rev 997374)
@@ -0,0 +1,39 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
+
+pkgname=rpg-cli
+pkgver=0.6.0
+pkgrel=2
+pkgdesc='Your filesystem as a dungeon!'
+arch=('x86_64')
+url='https://github.com/facundoolano/rpg-cli'
+license=('MIT')
+depends=('gcc-libs')
+makedepends=('rust')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
+        "$pkgname.sh")
+sha256sums=('eef8ec026d0f49d00c05587984e4dd24e477efeb4b674be9a5cb992be876b163'
+            '0b70c8a7eaa33e91bfa7baabccbd6735bbb0dc330539bd16f9f316bb2c8dd515')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked
+}
+
+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" -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 "../$pkgname.sh" "$pkgdir/usr/share/$pkgname/$pkgname.sh"
+}

Copied: rpg-cli/repos/community-x86_64/rpg-cli.sh (from rev 997373, rpg-cli/trunk/rpg-cli.sh)
===================================================================
--- community-x86_64/rpg-cli.sh	                        (rev 0)
+++ community-x86_64/rpg-cli.sh	2021-08-10 13:03:26 UTC (rev 997374)
@@ -0,0 +1,10 @@
+rpg () {
+  case "${1}" in
+    buy | use | battle | stat)
+      rpg-cli "${@}"
+      ;;
+    *)
+      cd "${@}" && rpg-cli cd "${PWD}"
+      ;;
+  esac
+}



More information about the arch-commits mailing list