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

David Runge dvzrv at archlinux.org
Thu Jul 8 16:00:27 UTC 2021


    Date: Thursday, July 8, 2021 @ 16:00:27
  Author: dvzrv
Revision: 975790

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-08 16:00:19 UTC (rev 975789)
+++ PKGBUILD	2021-07-08 16:00:27 UTC (rev 975790)
@@ -1,48 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=json
-pkgname=ruby-json
-pkgver=2.5.1
-pkgrel=2
-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=('4df7ec9b86692376e89c2019c2c1ab3ae9af28fb4742864acc6f985c0551fc10795742cc1124d6435e820617c00d4c5f4aa6c83b21d2fff43ed05cd9d0a89087')
-
-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 gems/${_name}-${pkgver}/{ext,lib/*/*.so,*.gemspec} \
-    extensions/*/*/${_name}-${pkgver}/{mkmf.log,gem_make.out}
-}

Copied: ruby-json/repos/community-x86_64/PKGBUILD (from rev 975789, ruby-json/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-07-08 16:00:27 UTC (rev 975790)
@@ -0,0 +1,51 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=json
+pkgname=ruby-json
+pkgver=2.5.1
+pkgrel=3
+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=('4df7ec9b86692376e89c2019c2c1ab3ae9af28fb4742864acc6f985c0551fc10795742cc1124d6435e820617c00d4c5f4aa6c83b21d2fff43ed05cd9d0a89087')
+b2sums=('2ccdf5921ef476b66cb1dbf72cc01763636c82b0eb5d0a5cfc029e14177c7c6766464e7852b11c2424db401f5b931cb64c01d3952929236c9979378a7928ea59')
+
+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