[arch-commits] Commit in ruby-bcrypt_pbkdf/trunk (PKGBUILD)
Tim Meusel
bastelfreak at archlinux.org
Thu May 27 20:43:21 UTC 2021
Date: Thursday, May 27, 2021 @ 20:43:20
Author: bastelfreak
Revision: 949149
cleanup PKGBUILD; make it reproducible
Modified:
ruby-bcrypt_pbkdf/trunk/PKGBUILD
----------+
PKGBUILD | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-27 20:39:58 UTC (rev 949148)
+++ PKGBUILD 2021-05-27 20:43:20 UTC (rev 949149)
@@ -3,7 +3,7 @@
_gemname='bcrypt_pbkdf'
pkgname="ruby-${_gemname}"
pkgver=1.1.0
-pkgrel=2
+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'
@@ -27,8 +27,6 @@
build() {
cd "${srcdir}/${_gemname}-ruby-${pkgver}"
- #rake compile
- #gem build "${_gemname}.gemspec"
rake compile
rake gem
}
@@ -41,13 +39,13 @@
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"
+ 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 "${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}
+ rm -rf "${pkgdir}/${_gemdir}/doc/${_gemname}-${pkgver}/ri/ext"
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list