[arch-commits] Commit in ghi/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 15:40:08 UTC 2020
Date: Tuesday, July 7, 2020 @ 15:40:07
Author: felixonmars
Revision: 658975
archrelease: copy trunk to community-staging-any
Added:
ghi/repos/community-staging-any/
ghi/repos/community-staging-any/PKGBUILD
(from rev 658974, ghi/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: ghi/repos/community-staging-any/PKGBUILD (from rev 658974, ghi/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-07-07 15:40:07 UTC (rev 658975)
@@ -0,0 +1,40 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Thomas Weißschuh <thomas t-8ch de>
+
+pkgname=ghi
+pkgver=1.2.0.r23.g0bf0e97
+pkgrel=2
+pkgdesc='GitHub Issues on the command line'
+arch=('any')
+url="https://github.com/stephencelis/${pkgname}"
+license=('MIT')
+depends=('ruby')
+makedepends=('git')
+# inactive, so grab the latest commit
+_commit=0bf0e97016b36d8746fabd6dd71f79e94134407f
+source=("git+${url}.git#commit=${_commit}")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}"/${pkgname}
+
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${srcdir}"/${pkgname}
+
+ # built version is committed to repo, will only change dates in manpage
+ #rake build man
+}
+
+package() {
+ cd "${srcdir}"/${pkgname}
+
+ # doesn't respect DESTDIR, reruns build steps
+ #PREFIX="${pkgdir}/usr/" rake install
+
+ install -Dm755 -t "${pkgdir}"/usr/bin ghi
+ install -Dm644 -t "${pkgdir}"/usr/share/man/man1 man/ghi.1
+ install -Dm644 -t "${pkgdir}"/usr/share/licenses/${pkgname} LICENSE
+}
More information about the arch-commits
mailing list