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

Anatol Pomozov anatolik at archlinux.org
Tue Jul 6 16:46:58 UTC 2021


    Date: Tuesday, July 6, 2021 @ 16:46:57
  Author: anatolik
Revision: 973548

archrelease: copy trunk to community-testing-any

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

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

Copied: ruby-addressable/repos/community-testing-any/PKGBUILD (from rev 973547, ruby-addressable/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-07-06 16:46:57 UTC (rev 973548)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Mario Finelli <mario at finel dot li>
+# Contributor: Artem Vorotnikov <artem at vorotnikov dot me>
+
+_gemname=addressable
+pkgname=ruby-addressable
+pkgver=2.8.0
+pkgrel=1
+pkgdesc='URI Implementation'
+arch=('any')
+url='https://github.com/sporkmonger/addressable'
+license=('Apache')
+depends=('ruby' 'ruby-public_suffix')
+makedepends=('ruby-rdoc')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/sporkmonger/addressable/archive/addressable-${pkgver}.tar.gz)
+sha256sums=('ce5adc6636e9222897886fca3b07398c8a00c6604c3a9acba715761da201fe19')
+sha512sums=('be22ca98d3ccbef8b3ee66bb257e347250d03072b2bcb18ed52dbb9d6ebe4ff0363b0545fe69e965896953ce705f046e41e20c5d2359866c9c6b7c9ef623b09b')
+
+prepare() {
+  cd ${_gemname}-${_gemname}-${pkgver}
+  sed -E 's|~>|>=|g' -i ${_gemname}.gemspec
+  sed -E 's|"< [0-9.]+", ||g' -i ${_gemname}.gemspec
+}
+
+build() {
+  cd ${_gemname}-${_gemname}-${pkgver}
+  gem build ${_gemname}.gemspec
+}
+
+package() {
+  cd ${_gemname}-${_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.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE.txt -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