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

Levente Polyak anthraxx at gemini.archlinux.org
Sat May 21 22:11:03 UTC 2022


    Date: Saturday, May 21, 2022 @ 22:11:02
  Author: anthraxx
Revision: 1209898

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   93 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 46 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-21 22:10:57 UTC (rev 1209897)
+++ PKGBUILD	2022-05-21 22:11:02 UTC (rev 1209898)
@@ -1,47 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-
-_gemname=rack-protection
-pkgname=ruby-${_gemname}
-pkgver=2.1.0
-pkgrel=2
-pkgdesc='Protect against typical web attacks, works with all Rack apps, including Rails'
-url='http://sinatrarb.com/protection/'
-arch=('any')
-license=('MIT')
-depends=('ruby' 'ruby-rack')
-makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-bundler' 'ruby-minitest')
-checkdepends=('ruby-rspec')
-options=('!emptydirs')
-source=(https://github.com/sinatra/sinatra/archive/v${pkgver}/sinatra-${pkgver}.tar.gz)
-sha512sums=('7127593bd44a5648407631f05d5db04100db30ae862c37e22dc264025fe271336c25df3c47839e41ba200da98be6c7b985852cd53d494a8bbda90fe701a89fe0')
-b2sums=('05eea600695abf6ee9b2ef0eb2a215c106ac45a343a60017f2cdf8aba8733c1ba5c55235a9c35a4665659797754f78e28d6b8fb1e24391e99a2336ee150bacff')
-
-prepare() {
-  cd sinatra-${pkgver}/${_gemname}
-  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec Rakefile
-}
-
-build() {
-  cd sinatra-${pkgver}/${_gemname}
-  rake build
-}
-
-check() {
-  cd sinatra-${pkgver}/${_gemname}
-  # TODO: requires rack-test
-  # rake test
-}
-
-package() {
-  cd sinatra-${pkgver}/${_gemname}
-  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.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 License -t "${pkgdir}/usr/share/licenses/${pkgname}"
-
-  cd "${pkgdir}/${_gemdir}"
-  rm -r "${pkgdir}/${_gemdir}/cache"
-}
-
-# vim: ts=2 sw=2 et:

Copied: ruby-rack-protection/repos/community-any/PKGBUILD (from rev 1209897, ruby-rack-protection/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-21 22:11:02 UTC (rev 1209898)
@@ -0,0 +1,46 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=rack-protection
+pkgname=ruby-${_gemname}
+pkgver=2.2.0
+pkgrel=1
+pkgdesc='Protect against typical web attacks, works with all Rack apps, including Rails'
+url='http://sinatrarb.com/protection/'
+arch=('any')
+license=('MIT')
+depends=('ruby' 'ruby-rack')
+makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-bundler' 'ruby-minitest')
+checkdepends=('ruby-rspec' 'ruby-rack-test')
+options=('!emptydirs')
+source=(https://github.com/sinatra/sinatra/archive/v${pkgver}/sinatra-${pkgver}.tar.gz)
+sha512sums=('be9432a8efa93578accc836cd0fecca128e56989d8596f1b3d33d2d956e90acd80244b98473fff2adae13ed4a1e933c41e73c80755a6f3418a65cdf33c011145')
+b2sums=('e407b9241cab27e326c0a2d4d83593e292de902b6ed19a12f17b0cd114230b0d10f1ffaa8f8b8237d17b547c7e012c57456af357019b228f3d7a88847220cf33')
+
+prepare() {
+  cd sinatra-${pkgver}/${_gemname}
+  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec Rakefile
+}
+
+build() {
+  cd sinatra-${pkgver}/${_gemname}
+  rake build
+}
+
+check() {
+  cd sinatra-${pkgver}/${_gemname}
+  rake test
+}
+
+package() {
+  cd sinatra-${pkgver}/${_gemname}
+  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.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 License -t "${pkgdir}/usr/share/licenses/${pkgname}"
+
+  cd "${pkgdir}/${_gemdir}"
+  rm -r "${pkgdir}/${_gemdir}/cache"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list