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

Levente Polyak anthraxx at archlinux.org
Wed May 13 00:12:48 UTC 2020


    Date: Wednesday, May 13, 2020 @ 00:12:37
  Author: anthraxx
Revision: 627271

upgpkg: ruby-rack 2.2.2-1

Modified:
  ruby-rack/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-12 23:53:35 UTC (rev 627270)
+++ PKGBUILD	2020-05-13 00:12:37 UTC (rev 627271)
@@ -4,7 +4,7 @@
 
 _gemname=rack
 pkgname=ruby-rack
-pkgver=2.0.8
+pkgver=2.2.2
 pkgrel=1
 pkgdesc='Minimal, modular, and adaptable interface for developing web applications'
 url='https://rack.github.io/'
@@ -11,33 +11,39 @@
 arch=('any')
 license=('MIT')
 depends=('ruby')
-makedepends=('ruby-rdoc')
+makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-bundler' 'ruby-minitest'
+             'ruby-minitest-global_expectations' 'ruby-minitest-sprint')
 options=('!emptydirs')
-source=(https://github.com/rack/rack/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('c8bc494bc9fb522d375766563618cd1d2d5e01cb8c0beebf3656e17c6722f8f0')
-sha512sums=('872253be6d39f8674d0b1c1f22efb5de149a52ebbbbf9ff50632979551a9cce7f214a07bfde7a2def8a4fc56737c31869d2b4e320c4e7a20dab868a192596bf9')
+source=(https://github.com/rack/rack/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('73bddac03ac2702b803cfc09b7e56ac9cb86775d4d697ca6f98bb4302fe6ec9e')
+sha512sums=('d0d27d091584b6cabafaa1d1053e013bc28ac0dc7da7b5bf28e528f5479091db1c896052a4ffe75be22011d3bc35c41ce73514a47e66b28ff8d3b723c46fd42c')
 
 prepare() {
   cd ${_gemname}-${pkgver}
-  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla
+  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec Rakefile
 }
 
 build() {
   cd ${_gemname}-${pkgver}
-  gem build ${_gemname}.gemspec
+  rake build
 }
 
+check() {
+  cd ${_gemname}-${pkgver}
+  rake test
+}
+
 package() {
   cd ${_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.rdoc NEWS.md HISTORY.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" \
+    -n "${pkgdir}/usr/bin" pkg/${_gemname}-${pkgver}.gem
+  install -Dm 644 README.rdoc CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 MIT-LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
   install -Dm 644 example/* -t "${pkgdir}/usr/share/doc/${pkgname}/example"
 
   cd "${pkgdir}/${_gemdir}"
-  rm -rf cache gems/${_gemname}-${pkgver}/{ext,lib/*/*.so,man} \
-    extensions/*/*/${_gemname}-${pkgver}/{mkmf.log,gem_make.out}
+  rm -r "${pkgdir}/${_gemdir}/cache"
 }
 
 # vim: ts=2 sw=2 et:


More information about the arch-commits mailing list