[arch-commits] Commit in ruby-sys-proctable/repos/community-any (PKGBUILD PKGBUILD)
Tim Meusel
bastelfreak at archlinux.org
Thu May 27 20:25:05 UTC 2021
Date: Thursday, May 27, 2021 @ 20:25:05
Author: bastelfreak
Revision: 949144
archrelease: copy trunk to community-any
Added:
ruby-sys-proctable/repos/community-any/PKGBUILD
(from rev 949143, ruby-sys-proctable/trunk/PKGBUILD)
Deleted:
ruby-sys-proctable/repos/community-any/PKGBUILD
----------+
PKGBUILD | 115 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 59 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-27 20:24:59 UTC (rev 949143)
+++ PKGBUILD 2021-05-27 20:25:05 UTC (rev 949144)
@@ -1,56 +0,0 @@
-# Generated by gem2arch (https://github.com/anatol/gem2arch)
-# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
-# Contributor: Christoph Scholz <christoph.scholz at gmail.com>
-
-_gemname='sys-proctable'
-pkgname="ruby-${_gemname}"
-pkgver=1.2.6
-pkgrel=2
-pkgdesc='An interface for providing process table information'
-arch=('any')
-url='https://github.com/djberg96/sys-proctable'
-license=('Apache')
-depends=('ruby' 'ruby-ffi')
-makedepends=('ruby-rake' 'ruby-rdoc' 'ruby-rake-compiler' 'ruby-yard' 'ruby-rspec' 'ruby-bundler')
-checkdepends=('ruby-test-unit')
-options=('!emptydirs')
-source=("${url}/archive/${_gemname}-${pkgver}.tar.gz")
-sha512sums=('3243f0dd21518799665fd36eaf6a4a749d9a407c6f8b269141c70518080a713055d6e2d6c127e78af458bbc7f34aff9b8274f10eed364513e1d5a3f64090c0b6')
-
-prepare() {
- cd "${srcdir}/${_gemname}-${_gemname}-${pkgver}"
-
- # we won't sign our output gemfile (i.e. we won't upload to rubygems)
- sed -i '/spec.signing_key/d' Rakefile
-
- # we're running in a limited chroot and won't reach the default 10 procs for `top` output
- # just disable this test and move on
- sed -i '/described_class.top.size/d' spec/sys_top_spec.rb
-}
-
-build() {
- cd "${srcdir}/${_gemname}-${_gemname}-${pkgver}"
- rake gem:create
-}
-
-check() {
- cd "${srcdir}/${_gemname}-${_gemname}-${pkgver}"
- rake spec
-}
-
-package() {
- cd "${srcdir}/${_gemname}-${_gemname}-${pkgver}"
- local _gemdir="$(gem env gemdir)"
- find . -iname '*.gem'
- gem install \
- --ignore-dependencies \
- --no-user-install \
- -i "${pkgdir}/${_gemdir}" \
- -n "${pkgdir}/usr/bin" \
- "${_gemname}-${pkgver}.gem"
-
- cd "${pkgdir}/${_gemdir}"
- rm -rf cache
-}
-
-# vim: ts=2 sw=2 et:
Copied: ruby-sys-proctable/repos/community-any/PKGBUILD (from rev 949143, ruby-sys-proctable/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-05-27 20:25:05 UTC (rev 949144)
@@ -0,0 +1,59 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Christoph Scholz <christoph.scholz at gmail.com>
+
+_gemname='sys-proctable'
+pkgname="ruby-${_gemname}"
+pkgver=1.2.6
+pkgrel=3
+pkgdesc='An interface for providing process table information'
+arch=('any')
+url='https://github.com/djberg96/sys-proctable'
+license=('Apache')
+depends=('ruby' 'ruby-ffi')
+makedepends=('ruby-rake' 'ruby-rdoc' 'ruby-rake-compiler' 'ruby-yard' 'ruby-rspec' 'ruby-bundler')
+checkdepends=('ruby-test-unit')
+options=('!emptydirs')
+source=("${url}/archive/${_gemname}-${pkgver}.tar.gz")
+sha512sums=('3243f0dd21518799665fd36eaf6a4a749d9a407c6f8b269141c70518080a713055d6e2d6c127e78af458bbc7f34aff9b8274f10eed364513e1d5a3f64090c0b6')
+
+prepare() {
+ cd "${srcdir}/${_gemname}-${_gemname}-${pkgver}"
+
+ # we won't sign our output gemfile (i.e. we won't upload to rubygems)
+ sed -i '/spec.signing_key/d' Rakefile
+
+ # we're running in a limited chroot and won't reach the default 10 procs for `top` output
+ # just disable this test and move on
+ sed -i '/described_class.top.size/d' spec/sys_top_spec.rb
+
+ # the date field in the gemspec is useless and makes the package non-reproducible
+ sed -i '/s.date/d' sys-proctable.gemspec
+}
+
+build() {
+ cd "${srcdir}/${_gemname}-${_gemname}-${pkgver}"
+ rake gem:create
+}
+
+check() {
+ cd "${srcdir}/${_gemname}-${_gemname}-${pkgver}"
+ rake spec
+}
+
+package() {
+ cd "${srcdir}/${_gemname}-${_gemname}-${pkgver}"
+ local _gemdir="$(gem env gemdir)"
+ gem install \
+ --ignore-dependencies \
+ --no-user-install \
+ --install-dir "${pkgdir}/${_gemdir}" \
+ --bindir "${pkgdir}/usr/bin" \
+ "${_gemname}-${pkgver}.gem"
+
+ rm -rf "${pkgdir}/${_gemdir}/cache"
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+ install -Dm 644 README.md examples/example_ps.rb CHANGES.rdoc -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list