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

Felix Yan felixonmars at archlinux.org
Thu Dec 26 00:33:03 UTC 2019


    Date: Thursday, December 26, 2019 @ 00:33:02
  Author: felixonmars
Revision: 541633

archrelease: copy trunk to community-staging-any

Added:
  ruby-diff-lcs/repos/community-staging-any/
  ruby-diff-lcs/repos/community-staging-any/PKGBUILD
    (from rev 541631, ruby-diff-lcs/trunk/PKGBUILD)

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

Copied: ruby-diff-lcs/repos/community-staging-any/PKGBUILD (from rev 541631, ruby-diff-lcs/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-12-26 00:33:02 UTC (rev 541633)
@@ -0,0 +1,35 @@
+# 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.3
+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')
+makedepends=('ruby-rdoc')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/halostatue/diff-lcs/archive/v${pkgver}.tar.gz)
+sha512sums=('b455f86ab006cbb823c2f8ed7fcde16c432e3783b6408ec305e57b7f4d0cf98bad586786947414ec3dc27e885b1485e534d26df19eaa9972874d78a8829b501e')
+
+build() {
+  cd ${_gemname}-${pkgver}
+  gem build ${_gemname}.gemspec
+}
+
+package() {
+  cd ${_gemname}-${pkgver}
+  local _gemdir="$(gem env gemdir)"
+  gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+  install -Dm 644 README.rdoc -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 License.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list