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

Anatol Pomozov anatolik at archlinux.org
Tue Aug 2 12:27:11 UTC 2016


    Date: Tuesday, August 2, 2016 @ 12:27:11
  Author: anatolik
Revision: 184830

archrelease: copy trunk to community-testing-any

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

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

Copied: ruby-treetop/repos/community-testing-any/PKGBUILD (from rev 184828, ruby-treetop/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2016-08-02 12:27:11 UTC (rev 184830)
@@ -0,0 +1,29 @@
+# $Id$
+# 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.8
+pkgrel=1
+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=('385cbbf3827a0a8559e4c79db0f0f88993dca5e8ce46cf08f1baccb61ac6a3cf')
+
+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