[arch-commits] Commit in (4 files)
Tim Meusel
bastelfreak at archlinux.org
Sun May 16 15:22:50 UTC 2021
Date: Sunday, May 16, 2021 @ 15:22:50
Author: bastelfreak
Revision: 935856
add ruby27-deep_merge
Added:
ruby27-deep_merge/
ruby27-deep_merge/repos/
ruby27-deep_merge/trunk/
ruby27-deep_merge/trunk/PKGBUILD
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Added: ruby27-deep_merge/trunk/PKGBUILD
===================================================================
--- ruby27-deep_merge/trunk/PKGBUILD (rev 0)
+++ ruby27-deep_merge/trunk/PKGBUILD 2021-05-16 15:22:50 UTC (rev 935856)
@@ -0,0 +1,39 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Christian Rebischke <chris.rebischke at archlinux.org>
+
+_gemname='deep_merge'
+pkgname="ruby27-${_gemname}"
+pkgver=1.2.1
+pkgrel=1
+pkgdesc='Recursively merge Ruby hashes'
+arch=('any')
+url="https://github.com/danielsdeleo/${_gemname}"
+license=('MIT')
+makedepends=('ruby27-rdoc')
+checkdepends=('ruby27-rake' 'ruby27-minitest' 'ruby27-test-unit')
+depends=('ruby2.7')
+options=(!emptydirs)
+source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('d5a61761e0d7d83d0956f98d6d2e841427b9b7a6d8f80598bd97c5dea7bdd582a6d406ed0d8701180c0a8a950a5bbd50a50349ec4b85e5a3e999dcb3741de25f')
+
+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 -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