[arch-commits] Commit in ruby-json/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Mon May 16 16:21:42 UTC 2022


    Date: Monday, May 16, 2022 @ 16:21:42
  Author: dvzrv
Revision: 1207556

upgpkg: ruby-json 2.6.2-1: Upgrade to 2.6.2.

Remove unneeded quotes and curly braces.

Modified:
  ruby-json/trunk/PKGBUILD

----------+
 PKGBUILD |   47 ++++++++++++++++++++++-------------------------
 1 file changed, 22 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-16 16:15:11 UTC (rev 1207555)
+++ PKGBUILD	2022-05-16 16:21:42 UTC (rev 1207556)
@@ -2,50 +2,47 @@
 
 _name=json
 pkgname=ruby-json
-pkgver=2.6.1
+pkgver=2.6.2
 pkgrel=1
 pkgdesc="JSON implementation for Ruby"
-arch=('x86_64')
+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')
+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')
+source=($pkgname-$pkgver.tar.gz::https://github.com/flori/$_name/archive/v$pkgver.tar.gz)
+sha512sums=('9c1c16ef462e7736c0306781573f32b96a0a53368ed24b4d1ae97953df62956b6cd72dcd20ed07708b0e1e3dd71baa61551bde452c87d7efac41267c0ee60b33')
+b2sums=('f81202ee284d3a6afe5c6f3ddccde76655e170b64883e37bc38c47bd63d731f8dca4e8a57da15e275ad64af5e1e967def69590d1105c0069b92f322919782a84')
 
 prepare() {
-  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
-  cd "${pkgname}-${pkgver}"
+  cd $_name-$pkgver
   # we don't do version pinning
   sed -r 's|~>|>=|g' -i *.gemspec Gemfile Rakefile
 }
 
 build() {
-  cd "${pkgname}-${pkgver}"
-  gem build "${_name}.gemspec"
+  cd $_name-$pkgver
+  gem build $_name.gemspec
 }
 
 check(){
-  cd "${pkgname}-${pkgver}"
+  cd $_name-$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 $_name-$pkgver
+  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/"
+
+  # remove 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}
+    "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