[arch-commits] Commit in ruby-minitar/repos (2 files)

Tim Meusel bastelfreak at archlinux.org
Mon Feb 22 22:04:10 UTC 2021


    Date: Monday, February 22, 2021 @ 22:04:09
  Author: bastelfreak
Revision: 869088

archrelease: copy trunk to community-testing-any

Added:
  ruby-minitar/repos/community-testing-any/
  ruby-minitar/repos/community-testing-any/PKGBUILD
    (from rev 869087, ruby-minitar/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: ruby-minitar/repos/community-testing-any/PKGBUILD (from rev 869087, ruby-minitar/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-02-22 22:04:09 UTC (rev 869088)
@@ -0,0 +1,49 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+# Contributor: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Mario Finelli <mario at finel dot li>
+
+_gemname='minitar'
+pkgname="ruby-${_gemname}"
+pkgver=0.9
+pkgrel=2
+pkgdesc='A pure-Ruby library that provides the ability to deal with POSIX tar(1) archive files'
+arch=('any')
+url='https://github.com/halostatue/minitar/'
+license=('RUBY' 'BSD')
+makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-hoe' 'ruby-minitest')
+depends=('ruby')
+source=("https://github.com/halostatue/minitar/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
+options=("!emptydirs")
+sha512sums=('e3aaf0e664a985704cf9dccb72250ea2a7ebb2db9b6120590fb8d5525fe2717e0a90b3020f461ae0c4dfb19dc8728b4eeb6ba2e24ab75d12fbd7f5d98b269c79')
+
+# update the gemspec to allow newer versions of rake
+# remove references to cloud CI pipelines (they require more gems and don't bring any value)
+prepare() {
+  cd "${_gemname}-${pkgver}"
+  sed --in-place 's|~>|>=|g' "${_gemname}.gemspec"
+  sed --in-place "/Rake::Task\['travis'\].*/d" Rakefile
+}
+
+build() {
+  cd "${_gemname}-${pkgver}"
+  #gem build "${_gemname}.gemspec"
+  rake gem
+}
+
+check() {
+  cd "${_gemname}-${pkgver}"
+  rake test
+}
+
+package() {
+  cd "${_gemname}-${pkgver}"
+  local _gemdir="$(gem env gemdir)"
+  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "pkg/${_gemname}-${pkgver}.gem"
+
+  install -Dm 644 Licence.md -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list