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

Felix Yan felixonmars at archlinux.org
Thu Dec 26 01:22:52 UTC 2019


    Date: Thursday, December 26, 2019 @ 01:22:51
  Author: felixonmars
Revision: 541755

archrelease: copy trunk to community-staging-any

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

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

Copied: ruby-treetop/repos/community-staging-any/PKGBUILD (from rev 541754, ruby-treetop/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-12-26 01:22:51 UTC (rev 541755)
@@ -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=3
+pkgdesc='A Ruby-based text parsing and interpretation DSL'
+arch=('any')
+url='http://treetop.rubyforge.org/'
+license=('MIT')
+depends=('ruby-polyglot')
+options=('!emptydirs')
+source=("https://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