[arch-commits] Commit in ruby-etc/repos (2 files)
Andreas Schleifer
segaja at gemini.archlinux.org
Wed Aug 24 17:29:11 UTC 2022
Date: Wednesday, August 24, 2022 @ 17:29:10
Author: segaja
Revision: 1276606
archrelease: copy trunk to community-testing-x86_64
Added:
ruby-etc/repos/community-testing-x86_64/
ruby-etc/repos/community-testing-x86_64/PKGBUILD
(from rev 1276605, ruby-etc/trunk/PKGBUILD)
----------+
PKGBUILD | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
Copied: ruby-etc/repos/community-testing-x86_64/PKGBUILD (from rev 1276605, ruby-etc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-08-24 17:29:10 UTC (rev 1276606)
@@ -0,0 +1,79 @@
+# Maintainer: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
+
+_gemname='etc'
+pkgname="ruby-${_gemname}"
+pkgver=1.3.0
+pkgrel=1
+pkgdesc='Provides access to information typically stored in UNIX /etc directory'
+arch=('x86_64')
+url="https://github.com/ruby/${_gemname}"
+license=('BSD' 'RUBY')
+depends=('ruby')
+makedepends=('ruby-rake' 'ruby-rake-compiler')
+options=(!emptydirs)
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('f192bd189ff368e98c289fc9b6302a5786932fc477c7e70699100d2cb00341bafe1b2180dc674f952f88bc2e74be719f485079439a0efff5b2a4c7c1f4ed7b4a')
+
+prepare() {
+ cd "${_gemname}-${pkgver}"
+
+ # update gemspec/Gemfile to allow newer version of the dependencies
+ sed --in-place --regexp-extended 's|~>|>=|g' "${_gemname}.gemspec"
+}
+
+build() {
+ cd "${_gemname}-${pkgver}"
+
+ rake compile:etc
+ rake build
+}
+
+check() {
+ cd "${_gemname}-${pkgver}"
+
+ rake test
+}
+
+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" \
+ "pkg/${_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 -D --mode=644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D --mode=644 README.md --target-directory "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list