[arch-commits] Commit in ruby-sys-proctable/trunk (PKGBUILD)
Tim Meusel
bastelfreak at archlinux.org
Thu May 27 20:24:59 UTC 2021
Date: Thursday, May 27, 2021 @ 20:24:59
Author: bastelfreak
Revision: 949143
cleanup PKGBUILD; make it reproducible
Modified:
ruby-sys-proctable/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-27 20:23:23 UTC (rev 949142)
+++ PKGBUILD 2021-05-27 20:24:59 UTC (rev 949143)
@@ -1,11 +1,11 @@
-# Generated by gem2arch (https://github.com/anatol/gem2arch)
# 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=2
+pkgrel=3
pkgdesc='An interface for providing process table information'
arch=('any')
url='https://github.com/djberg96/sys-proctable'
@@ -26,6 +26,9 @@
# 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() {
@@ -41,16 +44,16 @@
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" \
+ --install-dir "${pkgdir}/${_gemdir}" \
+ --bindir "${pkgdir}/usr/bin" \
"${_gemname}-${pkgver}.gem"
- cd "${pkgdir}/${_gemdir}"
- rm -rf cache
+ 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