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

Tim Meusel bastelfreak at archlinux.org
Thu May 27 20:43:28 UTC 2021


    Date: Thursday, May 27, 2021 @ 20:43:27
  Author: bastelfreak
Revision: 949150

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |  104 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 51 insertions(+), 53 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-27 20:43:20 UTC (rev 949149)
+++ PKGBUILD	2021-05-27 20:43:27 UTC (rev 949150)
@@ -1,53 +0,0 @@
-# Maintainer: Tim Meusel <tim at bastelfreak.de>
-
-_gemname='bcrypt_pbkdf'
-pkgname="ruby-${_gemname}"
-pkgver=1.1.0
-pkgrel=2
-pkgdesc="OpenBSD's bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based PRF)"
-arch=('x86_64')
-url='https://github.com/net-ssh/bcrypt_pbkdf-ruby'
-license=('MIT')
-depends=('ruby')
-makedepends=('ruby-rake' 'ruby-bundler' 'ruby-rdoc' 'ruby-rake-compiler')
-checkdepends=('ruby-minitest')
-options=('!emptydirs')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha512sums=('d7a21ff439b2d023597f1cd45e16b9072f4747fa9498dbcb1920a615dcd09ac020ebbe2a99275042d7bf87a4db207b8329a3c7ef2a95405ad0491d0b8afb6d02')
-provides=('bcrypt_pbkdf_ext.so')
-prepare() {
-  cd "${srcdir}/${_gemname}-ruby-${pkgver}"
-
-  sed -E 's|~>|>=|g' --in-place "${_gemname}.gemspec"
-  sed --in-place 's|git ls-files|find|' "${_gemname}.gemspec"
-  sed --in-place '/bundler/d' Rakefile
-  sed --in-place '/rake-compiler-dock/d' bcrypt_pbkdf.gemspec
-  sed --in-place '/has_rdoc/d' bcrypt_pbkdf.gemspec
-}
-
-build() {
-  cd "${srcdir}/${_gemname}-ruby-${pkgver}"
-  #rake compile
-  #gem build "${_gemname}.gemspec"
-  rake compile
-  rake gem
-}
-
-check() {
-  cd "${srcdir}/${_gemname}-ruby-${pkgver}"
-  rake test
-}
-
-package() {
-  cd "${srcdir}/${_gemname}-ruby-${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.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
-  rm -rf ${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/{ext,tmp}
-  rm -rf "${pkgdir}/${_gemdir}/cache"
-  rm -rf ${pkgdir}/${_gemdir}/extensions/*/*/${_gemname}-${pkgver}/{mkmf.log,gem_make.out}
-}
-
-# vim: ts=2 sw=2 et:

Copied: ruby-bcrypt_pbkdf/repos/community-x86_64/PKGBUILD (from rev 949149, ruby-bcrypt_pbkdf/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-27 20:43:27 UTC (rev 949150)
@@ -0,0 +1,51 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+
+_gemname='bcrypt_pbkdf'
+pkgname="ruby-${_gemname}"
+pkgver=1.1.0
+pkgrel=3
+pkgdesc="OpenBSD's bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based PRF)"
+arch=('x86_64')
+url='https://github.com/net-ssh/bcrypt_pbkdf-ruby'
+license=('MIT')
+depends=('ruby')
+makedepends=('ruby-rake' 'ruby-bundler' 'ruby-rdoc' 'ruby-rake-compiler')
+checkdepends=('ruby-minitest')
+options=('!emptydirs')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha512sums=('d7a21ff439b2d023597f1cd45e16b9072f4747fa9498dbcb1920a615dcd09ac020ebbe2a99275042d7bf87a4db207b8329a3c7ef2a95405ad0491d0b8afb6d02')
+provides=('bcrypt_pbkdf_ext.so')
+prepare() {
+  cd "${srcdir}/${_gemname}-ruby-${pkgver}"
+
+  sed -E 's|~>|>=|g' --in-place "${_gemname}.gemspec"
+  sed --in-place 's|git ls-files|find|' "${_gemname}.gemspec"
+  sed --in-place '/bundler/d' Rakefile
+  sed --in-place '/rake-compiler-dock/d' bcrypt_pbkdf.gemspec
+  sed --in-place '/has_rdoc/d' bcrypt_pbkdf.gemspec
+}
+
+build() {
+  cd "${srcdir}/${_gemname}-ruby-${pkgver}"
+  rake compile
+  rake gem
+}
+
+check() {
+  cd "${srcdir}/${_gemname}-ruby-${pkgver}"
+  rake test
+}
+
+package() {
+  cd "${srcdir}/${_gemname}-ruby-${pkgver}"
+  local _gemdir="$(gem env gemdir)"
+  gem install --ignore-dependencies --no-user-install --install-dir "${pkgdir}${_gemdir}" --bindir "${pkgdir}/usr/bin" "pkg/${_gemname}-${pkgver}.gem"
+  install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  rm -rf ${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/{ext,tmp}
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+  rm -rf ${pkgdir}/${_gemdir}/extensions/*/*/${_gemname}-${pkgver}/{mkmf.log,gem_make.out}
+  rm -rf "${pkgdir}/${_gemdir}/doc/${_gemname}-${pkgver}/ri/ext"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list