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

Eli Schwartz eschwartz at archlinux.org
Sun Oct 14 21:16:49 UTC 2018


    Date: Sunday, October 14, 2018 @ 21:16:49
  Author: eschwartz
Revision: 393856

addpkg: ghi 1.2.0.r23.g0bf0e97-1

Finally fulfilling promise from TU application to package this

Added:
  ghi/
  ghi/repos/
  ghi/trunk/
  ghi/trunk/PKGBUILD

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

Added: ghi/trunk/PKGBUILD
===================================================================
--- ghi/trunk/PKGBUILD	                        (rev 0)
+++ ghi/trunk/PKGBUILD	2018-10-14 21:16:49 UTC (rev 393856)
@@ -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=1
+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