Package Details: jira-cli 1.5.1-1

Git Clone URL: https://aur.archlinux.org/jira-cli.git (read-only, click to copy)
Package Base: jira-cli
Description: Feature-rich interactive Jira command line.
Upstream URL: https://github.com/ankitpokhrel/jira-cli
Licenses: MIT
Conflicts: go-jira, go-jira-bin, jira-cli-bin
Provides: jira
Submitter: 1995parham
Maintainer: 1995parham
Last Packager: 1995parham
Votes: 3
Popularity: 0.000029
First Submitted: 2022-08-06 12:28 (UTC)
Last Updated: 2024-10-08 10:09 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

seeseemelk commented on 2024-10-08 07:24 (UTC)

The bash completions seem to be stored in the wrong directory.

Instead of /usr/share/bash-completion/..., they're stored in /usr/share/bash-completions/...

C_Schmidpeter commented on 2023-06-25 16:02 (UTC) (edited on 2023-06-25 16:30 (UTC) by C_Schmidpeter)

Running commands e.g. 'jira init' results in:

jira:39: command not found: open_command

Using the docker image as described in README.md works normally.

edit: Ok, figured out the issue: Had in .zshrc the line 'zinit snippet OMZP::jira', which overwrote the 'jira' command.

VannTen commented on 2023-02-02 12:25 (UTC) (edited on 2023-02-02 12:26 (UTC) by VannTen)

Would you mind applying the following patches ? (adding completion and man pages, fix some packaging stuff) (git am patch-file.patch does the trick)

From 9d2faa4154440d134f47dab5abeffa6b45449718 Mon Sep 17 00:00:00 2001
From: Max Gautier <mg@max.gautier.name>
Date: Thu, 2 Feb 2023 13:13:21 +0100
Subject: [PATCH 1/3] Add completion function and man pages

---
 PKGBUILD | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 11be608..649839e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,9 +26,17 @@ build() {
        -modcacherw \
        -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
        .
+    ./jira completion bash > bash
+    ./jira completion zsh > zsh
+    ./jira completion fish > fish
+
 }

 package() {
-   cd "${srcdir}/${pkgname}-${pkgver}/cmd/jira"
-   install -D -m755 jira ${pkgdir}/usr/bin/jira
+    cd "${srcdir}/${pkgname}-${pkgver}/cmd/jira"
+    ./jira man --generate --output ${pkgdir}/usr/share/man/man7/
+    install -Dm 644 bash ${pkgdir}/usr/share/bash-completions/completions/jira
+    install -Dm 644 zsh ${pkgdir}/usr/share/zsh/site-functions/_jira
+    install -Dm 644 fish ${pkgdir}/usr/share/fish/vendor_completions.d/jira.fish
+    install -D -m755 jira ${pkgdir}/usr/bin/jira
 }
-- 
2.39.1

From 6d455c051cfb2a498e84f0e63504c5fa42e9a2ea Mon Sep 17 00:00:00 2001
From: Max Gautier <mg@max.gautier.name>
Date: Thu, 2 Feb 2023 13:19:32 +0100
Subject: [PATCH 2/3] Add custom license

MIT requires custom license for each package since copyright notice need
to be reproduced.
---
 PKGBUILD | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/PKGBUILD b/PKGBUILD
index 649839e..b81ce3d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,7 +33,9 @@ build() {
 }

 package() {
-    cd "${srcdir}/${pkgname}-${pkgver}/cmd/jira"
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    install -Dm 644 -t ${pkgdir}/usr/share/licenses/${pkgname} LICENSE
+    cd cmd/jira
     ./jira man --generate --output ${pkgdir}/usr/share/man/man7/
     install -Dm 644 bash ${pkgdir}/usr/share/bash-completions/completions/jira
     install -Dm 644 zsh ${pkgdir}/usr/share/zsh/site-functions/_jira
-- 
2.39.1

From 045e778ba5094b019f55078d73fe56415777c11a Mon Sep 17 00:00:00 2001
From: Max Gautier <mg@max.gautier.name>
Date: Thu, 2 Feb 2023 13:21:17 +0100
Subject: [PATCH 3/3] Make source file name unique (fix namcap complaint)

---
 PKGBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PKGBUILD b/PKGBUILD
index b81ce3d..fa66e22 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,7 @@ makedepends=("go")
 conflicts=('jira-cli-bin' 'go-jira' 'go-jira-bin')
 provides=('jira')

-source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
+source=("${pkgname}-${pkgver}::${url}/archive/refs/tags/v${pkgver}.tar.gz")

 sha256sums=('2091c3b21893ce4cf4b8b744d6ee06c063ffb177619d5275a1146e5017d70282')

-- 
2.39.1

tardypad commented on 2022-08-15 08:23 (UTC)

Can you add a Conflict with go-jira and go-jira-bin (which have the same "jira" binary)?