[arch-commits] Commit in ruby-time/repos/community-testing-any (PKGBUILD PKGBUILD)

Andreas Schleifer segaja at gemini.archlinux.org
Sun Aug 7 14:48:18 UTC 2022


    Date: Sunday, August 7, 2022 @ 14:48:18
  Author: segaja
Revision: 1260554

archrelease: copy trunk to community-testing-any

Added:
  ruby-time/repos/community-testing-any/PKGBUILD
    (from rev 1260553, ruby-time/trunk/PKGBUILD)
Deleted:
  ruby-time/repos/community-testing-any/PKGBUILD

----------+
 PKGBUILD |  162 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 81 insertions(+), 81 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-07 14:48:06 UTC (rev 1260553)
+++ PKGBUILD	2022-08-07 14:48:18 UTC (rev 1260554)
@@ -1,81 +0,0 @@
-# Maintainer: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
-
-_gemname='time'
-pkgname="ruby-${_gemname}"
-pkgver=0.2.0
-pkgrel=1
-pkgdesc='Extends the Time class with methods for parsing and conversion'
-arch=('any')
-url='https://github.com/ruby/time'
-license=('BSD' 'RUBY')
-depends=('ruby' 'ruby-date')
-checkdepends=('ruby-rake')
-options=(!emptydirs)
-source=(
-    "${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('07b4896827014ab1f6394ee8a116a8074c2342c070b814bb190104a404828d684c9ca49d0c53fe5ef4518d5455de73d5f4c03051cbae47257fa631b17515d2f9')
-
-prepare() {
-  cd "${_gemname}-${pkgver}"
-
-  # update gemspec/Gemfile to allow newer version of the dependencies
-  sed --in-place --regexp-extended 's|~>|>=|g' "${_gemname}.gemspec"
-
-  # we build based on a tar archive, not a git repo
-  sed --in-place --regexp-extended 's|git ls-files -z|find . -type f -not -path "*/\.git/*" -printf "%P\\n"|' "${_gemname}.gemspec"
-}
-
-build() {
-  cd "${_gemname}-${pkgver}"
-
-  gem build "${_gemname}.gemspec"
-}
-
-check() {
-  cd "${_gemname}-${pkgver}"
-
-  rake test
-}
-
-package() {
-  cd "${_gemname}-${pkgver}"
-
-  local _gemdir="$(gem env gemdir)"
-
-  gem install \
-    --local \
-    --ignore-dependencies \
-    --no-user-install \
-    --install-dir "${pkgdir}/${_gemdir}" \
-    --bindir "${pkgdir}/usr/bin" \
-    "${_gemname}-${pkgver}.gem"
-
-  # remove unrepreducible files
-  rm -frv \
-    "${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}"
-}

Copied: ruby-time/repos/community-testing-any/PKGBUILD (from rev 1260553, ruby-time/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-07 14:48:18 UTC (rev 1260554)
@@ -0,0 +1,81 @@
+# Maintainer: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
+
+_gemname='time'
+pkgname="ruby-${_gemname}"
+pkgver=0.2.0
+pkgrel=2
+pkgdesc='Extends the Time class with methods for parsing and conversion'
+arch=('any')
+url='https://github.com/ruby/time'
+license=('BSD' 'RUBY')
+depends=('ruby' 'ruby-date')
+checkdepends=('ruby-rake')
+options=(!emptydirs)
+source=(
+    "${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('07b4896827014ab1f6394ee8a116a8074c2342c070b814bb190104a404828d684c9ca49d0c53fe5ef4518d5455de73d5f4c03051cbae47257fa631b17515d2f9')
+
+prepare() {
+  cd "${_gemname}-${pkgver}"
+
+  # update gemspec/Gemfile to allow newer version of the dependencies
+  sed --in-place --regexp-extended 's|~>|>=|g' "${_gemname}.gemspec"
+
+  # we build based on a tar archive, not a git repo
+  sed --in-place --regexp-extended 's|git ls-files -z|find . -type f -not -path "*/\.git/*" -printf "%P\\\\0"|' "${_gemname}.gemspec"
+}
+
+build() {
+  cd "${_gemname}-${pkgver}"
+
+  gem build "${_gemname}.gemspec"
+}
+
+check() {
+  cd "${_gemname}-${pkgver}"
+
+  rake test
+}
+
+package() {
+  cd "${_gemname}-${pkgver}"
+
+  local _gemdir="$(gem env gemdir)"
+
+  gem install \
+    --local \
+    --ignore-dependencies \
+    --no-user-install \
+    --install-dir "${pkgdir}/${_gemdir}" \
+    --bindir "${pkgdir}/usr/bin" \
+    "${_gemname}-${pkgver}.gem"
+
+  # remove unrepreducible files
+  rm -frv \
+    "${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