[arch-commits] Commit in ruby-json/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Wed Oct 27 17:20:29 UTC 2021


    Date: Wednesday, October 27, 2021 @ 17:20:29
  Author: dvzrv
Revision: 1034723

archrelease: copy trunk to community-x86_64

Added:
  ruby-json/repos/community-x86_64/PKGBUILD
    (from rev 1034722, ruby-json/trunk/PKGBUILD)
Deleted:
  ruby-json/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  102 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 51 insertions(+), 51 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-27 17:20:20 UTC (rev 1034722)
+++ PKGBUILD	2021-10-27 17:20:29 UTC (rev 1034723)
@@ -1,51 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=json
-pkgname=ruby-json
-pkgver=2.6.0
-pkgrel=1
-pkgdesc="JSON implementation for Ruby"
-arch=('x86_64')
-url="https://github.com/flori/json"
-license=('BSD')
-depends=('ruby')
-makedepends=('ragel' 'ruby-rake' 'ruby-rdoc')
-checkdepends=('git' 'ruby-bundler' 'ruby-test-unit')
-options=(!emptydirs)
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/flori/${_name}/archive/v${pkgver}.tar.gz")
-sha512sums=('37bd455fc9b63962ec47858ffd5ac840196033e78efc85722363f4f7c1113f1323afccb4593e0cf022ebac70a59b1959ad59086c7de2c7a862319335c8411fd6')
-b2sums=('20d6818faf7efb7f1b04d958c3315eb70ebe44ef93adb18973da722f113ff3295c3faaa79cab95f6bc740a0c318d02dbcf9c80d8ca7672f48671ef73ae62042e')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
-  cd "${pkgname}-${pkgver}"
-  # we don't do version pinning
-  sed -r 's|~>|>=|g' -i *.gemspec Gemfile Rakefile
-}
-
-build() {
-  cd "${pkgname}-${pkgver}"
-  gem build "${_name}.gemspec"
-}
-
-check(){
-  cd "${pkgname}-${pkgver}"
-  rake test
-}
-
-package() {
-  cd "${pkgname}-${pkgver}"
-  local _gemdir="$(gem env gemdir)"
-  gem install --ignore-dependencies \
-              --no-user-install \
-              -i "${pkgdir}/${_gemdir}" \
-              -n "${pkgdir}/usr/bin" \
-              ${_name}-${pkgver}.gem
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  # removing all unneeded stuff
-  cd "${pkgdir}/${_gemdir}"
-  rm -rvf cache \
-    "doc/${_name}-${pkgver}/ri/ext/" \
-    extensions/*/*/${_name}-${pkgver}/{mkmf.log,gem_make.out} \
-    gems/${_name}-${pkgver}/{ext,lib/*/*.so,*.gemspec}
-}

Copied: ruby-json/repos/community-x86_64/PKGBUILD (from rev 1034722, ruby-json/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-10-27 17:20:29 UTC (rev 1034723)
@@ -0,0 +1,51 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=json
+pkgname=ruby-json
+pkgver=2.6.1
+pkgrel=1
+pkgdesc="JSON implementation for Ruby"
+arch=('x86_64')
+url="https://github.com/flori/json"
+license=('BSD')
+depends=('ruby')
+makedepends=('ragel' 'ruby-rake' 'ruby-rdoc')
+checkdepends=('git' 'ruby-bundler' 'ruby-test-unit')
+options=(!emptydirs)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/flori/${_name}/archive/v${pkgver}.tar.gz")
+sha512sums=('e9d0ef77d77ae54a0300b490e3e5c445d0b5aefbce1b160454916bd4f4f8f943131223047e6a7416347cc40d9e7fb1870101c3cbf3a2663a9053f07bdfbd13cf')
+b2sums=('5a8e83b8d11e360402324427de5d2520f39ee1567e2fbf3c92c738546792bb5dec4a9a3c36f3286a3de63161bb5d9f9e7b059c2560f7a3fa50271ce2aa3dc0fc')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+  # we don't do version pinning
+  sed -r 's|~>|>=|g' -i *.gemspec Gemfile Rakefile
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  gem build "${_name}.gemspec"
+}
+
+check(){
+  cd "${pkgname}-${pkgver}"
+  rake test
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  local _gemdir="$(gem env gemdir)"
+  gem install --ignore-dependencies \
+              --no-user-install \
+              -i "${pkgdir}/${_gemdir}" \
+              -n "${pkgdir}/usr/bin" \
+              ${_name}-${pkgver}.gem
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  # removing all unneeded stuff
+  cd "${pkgdir}/${_gemdir}"
+  rm -rvf cache \
+    "doc/${_name}-${pkgver}/ri/ext/" \
+    extensions/*/*/${_name}-${pkgver}/{mkmf.log,gem_make.out} \
+    gems/${_name}-${pkgver}/{ext,lib/*/*.so,*.gemspec}
+}



More information about the arch-commits mailing list