[arch-commits] Commit in ruby-diff-lcs/repos (community-any community-any/PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sat Sep 12 18:49:28 UTC 2015
Date: Saturday, September 12, 2015 @ 20:49:28
Author: anthraxx
Revision: 139991
archrelease: copy trunk to community-any
Added:
ruby-diff-lcs/repos/community-any/
ruby-diff-lcs/repos/community-any/PKGBUILD
(from rev 139990, ruby-diff-lcs/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: ruby-diff-lcs/repos/community-any/PKGBUILD (from rev 139990, ruby-diff-lcs/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-09-12 18:49:28 UTC (rev 139991)
@@ -0,0 +1,29 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sirat18 <aur at sirat18.de>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Alfredo Palhares <masterkorp at masterkorp.net>
+# Contributor: mtorromeo
+
+_gemname=diff-lcs
+pkgname=ruby-${_gemname}
+pkgver=1.2.5
+pkgrel=4
+pkgdesc='Diff::LCS computes the difference between two Enumerable sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm'
+url='https://github.com/halostatue/diff-lcs'
+arch=('any')
+license=('MIT' 'PerlArtistic' 'GPL2')
+depends=('ruby')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${pkgname}-${pkgver}.gem)
+sha512sums=('ce15cb794a97f9af8585c46b7a2404e1ad6e24e4910b6aa6c5126ef5996d86700979a54a154bab1c0602f19021b287dc865db3eebdc901fb42056f1e2180d0fe')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+ install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/docs/COPYING.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/README.rdoc" "${pkgdir}/usr/share/doc/${pkgname}/README"
+ rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list