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

Eli Schwartz eschwartz at archlinux.org
Sun Oct 14 21:17:10 UTC 2018


    Date: Sunday, October 14, 2018 @ 21:17:10
  Author: eschwartz
Revision: 393857

archrelease: copy trunk to community-any

Added:
  ghi/repos/community-any/
  ghi/repos/community-any/PKGBUILD
    (from rev 393856, ghi/trunk/PKGBUILD)

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

Copied: ghi/repos/community-any/PKGBUILD (from rev 393856, ghi/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-10-14 21:17:10 UTC (rev 393857)
@@ -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