[arch-commits] Commit in (4 files)
Tim Meusel
bastelfreak at archlinux.org
Sun May 16 15:18:00 UTC 2021
Date: Sunday, May 16, 2021 @ 15:17:59
Author: bastelfreak
Revision: 935852
add ruby27-sync
Added:
ruby27-sync/
ruby27-sync/repos/
ruby27-sync/trunk/
ruby27-sync/trunk/PKGBUILD
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Added: ruby27-sync/trunk/PKGBUILD
===================================================================
--- ruby27-sync/trunk/PKGBUILD (rev 0)
+++ ruby27-sync/trunk/PKGBUILD 2021-05-16 15:17:59 UTC (rev 935852)
@@ -0,0 +1,39 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Christian Rebischke <chris.rebischke at archlinux.org>
+
+_gemname='sync'
+pkgname="ruby27-${_gemname}"
+pkgver=0.5.0
+pkgrel=1
+pkgdesc='A Ruby module packaged as a gem that provides a two-phase lock with a counter. Was in Ruby core until 2.7'
+arch=('any')
+url="https://github.com/ruby/${_gemname}"
+license=('BSD')
+depends=('ruby2.7')
+makedepends=('ruby27-rdoc' 'ruby27-rake')
+checkdepends=('ruby27-test-unit')
+options=(!emptydirs)
+source=("${url}/archive/v${pkgver}/ruby-${_gemname}-${pkgver}.tar.gz")
+sha512sums=('5f887d9169e0be834c7fa17ae42b71078f25ce3d83e695490cd136adc1799d6b92e4aed41ce3f3d57b3ad193a1ac4de940b37212c2864bbf6331ba3582128166')
+
+build() {
+ cd "${srcdir}/${_gemname}-${pkgver}"
+ gem-2.7 build "${_gemname}.gemspec"
+}
+
+check() {
+ cd "${srcdir}/${_gemname}-${pkgver}"
+ ruby27-rake test
+}
+
+package() {
+ cd "${srcdir}/${_gemname}-${pkgver}"
+ local _gemdir="$(gem-2.7 env gemdir)"
+ gem-2.7 install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
+
+ install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+ rm -rf "${pkgdir}/${_gemdir}/cache"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list