[arch-commits] Commit in ruby-treetop/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Jan 7 01:04:37 UTC 2019


    Date: Monday, January 7, 2019 @ 01:04:37
  Author: felixonmars
Revision: 420817

archrelease: copy trunk to community-staging-any

Added:
  ruby-treetop/repos/community-staging-any/
  ruby-treetop/repos/community-staging-any/PKGBUILD
    (from rev 420815, ruby-treetop/trunk/PKGBUILD)

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

Copied: ruby-treetop/repos/community-staging-any/PKGBUILD (from rev 420815, ruby-treetop/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-01-07 01:04:37 UTC (rev 420817)
@@ -0,0 +1,28 @@
+# Maintainer: Maxime Gauduin <alucryd at gmail@com>
+# Contributor: Emiliano Vavassori <syntaxerrormmm at gmail.com>
+# Contributor: Guilherme Nogueira <guilherme at nirev.org>
+
+pkgname=ruby-treetop
+pkgver=1.6.10
+pkgrel=2
+pkgdesc='A Ruby-based text parsing and interpretation DSL'
+arch=('any')
+url='http://treetop.rubyforge.org/'
+license=('MIT')
+depends=('ruby-polyglot')
+options=('!emptydirs')
+source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-$pkgver.gem")
+sha256sums=('67df9f52c5fdeb7b2b8ce42156f9d019c1c4eb643481a68149ff6c0b65bc613c')
+
+package() {
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+
+  gem install --ignore-dependencies --no-user-install -N -i "${pkgdir}"/${_gemdir} -n "${pkgdir}"/usr/bin ${pkgname#*-}-${pkgver}.gem
+  find "${pkgdir}" -type f -name *.gem -delete
+
+  install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname}
+  ln -s ${_gemdir}/gems/${pkgname#*-}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list