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

Felix Yan felixonmars at archlinux.org
Sun Jan 20 20:54:57 UTC 2019


    Date: Sunday, January 20, 2019 @ 20:54:57
  Author: felixonmars
Revision: 425590

archrelease: copy trunk to community-testing-any

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

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

Copied: ruby-addressable/repos/community-testing-any/PKGBUILD (from rev 425588, ruby-addressable/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-01-20 20:54:57 UTC (rev 425590)
@@ -0,0 +1,40 @@
+# 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.6.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=('fd41dd66a08b3647346a5d5cf996bedc571a685a722cc489348fba160a7d7595')
+sha512sums=('9e889c173d32bfd1311a2a8cab6e2caa28666bb10387e2c5ccde6ce42b94d7366ce723a9ce3af6768b35fa4d5ef3a23ecf68d24ab31e12928e23dac178fab87f')
+
+prepare() {
+  cd ${_gemname}-${_gemname}-${pkgver}
+  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla
+}
+
+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