[arch-commits] Commit in (4 files)
Andreas Schleifer
segaja at gemini.archlinux.org
Sun Aug 28 10:08:02 UTC 2022
Date: Sunday, August 28, 2022 @ 10:08:01
Author: segaja
Revision: 1285041
ruby-simplecov 0.21.2-1
Added:
ruby-simplecov/
ruby-simplecov/repos/
ruby-simplecov/trunk/
ruby-simplecov/trunk/PKGBUILD
----------+
PKGBUILD | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
Added: ruby-simplecov/trunk/PKGBUILD
===================================================================
--- ruby-simplecov/trunk/PKGBUILD (rev 0)
+++ ruby-simplecov/trunk/PKGBUILD 2022-08-28 10:08:01 UTC (rev 1285041)
@@ -0,0 +1,81 @@
+# Maintainer: Andreas 'Segaja' Schleifer <archlinux at segaja dot de>
+
+_gemname='simplecov'
+pkgname="ruby-${_gemname}"
+pkgver=0.21.2
+pkgrel=1
+pkgdesc='Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites'
+arch=('any')
+url="https://github.com/simplecov-ruby/simplecov"
+license=('MIT')
+depends=('ruby' 'ruby-docile' 'ruby-simplecov-html' 'ruby-simplecov_json_formatter')
+#checkdepends=('ruby-bundler' 'ruby-rake' 'ruby-rspec')
+options=(!emptydirs)
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('68e9a901b2ecef07aebad214ea86a092871b0ebf5b62881ca97ca0033c1ee5b9ba395116f9960e69cd88b90f569a3b573a3879178e9ccfa06d28c94de8b4f918')
+
+prepare() {
+ cd "${_gemname}-${pkgver}"
+
+ sed --in-place --regexp-extended 's|~>|>=|g' "${_gemname}.gemspec"
+
+ rm --verbose Gemfile*
+}
+
+build() {
+ cd "${_gemname}-${pkgver}"
+
+ gem build "${_gemname}.gemspec"
+}
+
+# Disable checks for now as they require a lot more gems and love
+#check() {
+# cd "${_gemname}-${pkgver}"
+#
+# rake cucumber
+# rake spec
+#}
+
+package() {
+ cd "${_gemname}-${pkgver}"
+
+ local _gemdir="$(gem env gemdir)"
+
+ gem install \
+ --local \
+ --verbose \
+ --ignore-dependencies \
+ --no-user-install \
+ --install-dir "${pkgdir}/${_gemdir}" \
+ --bindir "${pkgdir}/usr/bin" \
+ "${_gemname}-${pkgver}.gem"
+
+ # remove unrepreducible files
+ rm --force --recursive --verbose \
+ "${pkgdir}/${_gemdir}/cache/" \
+ "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/vendor/" \
+ "${pkgdir}/${_gemdir}/doc/${_gemname}-${pkgver}/ri/ext/"
+
+ find "${pkgdir}/${_gemdir}/gems/" \
+ -type f \
+ \( \
+ -iname "*.o" -o \
+ -iname "*.c" -o \
+ -iname "*.so" -o \
+ -iname "*.time" -o \
+ -iname "gem.build_complete" -o \
+ -iname "Makefile" \
+ \) \
+ -delete
+
+ find "${pkgdir}/${_gemdir}/extensions/" \
+ -type f \
+ \( \
+ -iname "mkmf.log" -o \
+ -iname "gem_make.out" \
+ \) \
+ -delete
+
+ install --verbose -D --mode=644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install --verbose -D --mode=644 *.md --target-directory "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list