[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at archlinux.org
Sat Sep 12 18:48:52 UTC 2015
Date: Saturday, September 12, 2015 @ 20:48:52
Author: anthraxx
Revision: 139990
ddpkg: ruby-diff-lcs 1.2.5-4
Added:
ruby-diff-lcs/
ruby-diff-lcs/repos/
ruby-diff-lcs/trunk/
ruby-diff-lcs/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Added: ruby-diff-lcs/trunk/PKGBUILD
===================================================================
--- ruby-diff-lcs/trunk/PKGBUILD (rev 0)
+++ ruby-diff-lcs/trunk/PKGBUILD 2015-09-12 18:48:52 UTC (rev 139990)
@@ -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