[arch-commits] Commit in ruby-rack/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Wednesday, May 13, 2020 @ 00:12:54
  Author: anthraxx
Revision: 627272

archrelease: copy trunk to community-any

Added:
  ruby-rack/repos/community-any/PKGBUILD
    (from rev 627271, ruby-rack/trunk/PKGBUILD)
Deleted:
  ruby-rack/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   92 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 49 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-13 00:12:37 UTC (rev 627271)
+++ PKGBUILD	2020-05-13 00:12:54 UTC (rev 627272)
@@ -1,43 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
-
-_gemname=rack
-pkgname=ruby-rack
-pkgver=2.0.8
-pkgrel=1
-pkgdesc='Minimal, modular, and adaptable interface for developing web applications'
-url='https://rack.github.io/'
-arch=('any')
-license=('MIT')
-depends=('ruby')
-makedepends=('ruby-rdoc')
-options=('!emptydirs')
-source=(https://github.com/rack/rack/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('c8bc494bc9fb522d375766563618cd1d2d5e01cb8c0beebf3656e17c6722f8f0')
-sha512sums=('872253be6d39f8674d0b1c1f22efb5de149a52ebbbbf9ff50632979551a9cce7f214a07bfde7a2def8a4fc56737c31869d2b4e320c4e7a20dab868a192596bf9')
-
-prepare() {
-  cd ${_gemname}-${pkgver}
-  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla
-}
-
-build() {
-  cd ${_gemname}-${pkgver}
-  gem build ${_gemname}.gemspec
-}
-
-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}"
-  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}
-}
-
-# vim: ts=2 sw=2 et:

Copied: ruby-rack/repos/community-any/PKGBUILD (from rev 627271, ruby-rack/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-13 00:12:54 UTC (rev 627272)
@@ -0,0 +1,49 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
+
+_gemname=rack
+pkgname=ruby-rack
+pkgver=2.2.2
+pkgrel=1
+pkgdesc='Minimal, modular, and adaptable interface for developing web applications'
+url='https://rack.github.io/'
+arch=('any')
+license=('MIT')
+depends=('ruby')
+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/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('73bddac03ac2702b803cfc09b7e56ac9cb86775d4d697ca6f98bb4302fe6ec9e')
+sha512sums=('d0d27d091584b6cabafaa1d1053e013bc28ac0dc7da7b5bf28e528f5479091db1c896052a4ffe75be22011d3bc35c41ce73514a47e66b28ff8d3b723c46fd42c')
+
+prepare() {
+  cd ${_gemname}-${pkgver}
+  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec Rakefile
+}
+
+build() {
+  cd ${_gemname}-${pkgver}
+  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" 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 -r "${pkgdir}/${_gemdir}/cache"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list