[arch-commits] Commit in ruby-csv/repos/community-any (PKGBUILD PKGBUILD)
Andreas Schleifer
segaja at gemini.archlinux.org
Wed Aug 24 15:26:10 UTC 2022
Date: Wednesday, August 24, 2022 @ 15:26:10
Author: segaja
Revision: 1276449
archrelease: copy trunk to community-any
Added:
ruby-csv/repos/community-any/PKGBUILD
(from rev 1276448, ruby-csv/trunk/PKGBUILD)
Deleted:
ruby-csv/repos/community-any/PKGBUILD
----------+
PKGBUILD | 156 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 78 insertions(+), 78 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-24 15:25:55 UTC (rev 1276448)
+++ PKGBUILD 2022-08-24 15:26:10 UTC (rev 1276449)
@@ -1,78 +0,0 @@
-# Maintainer: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
-
-_gemname='csv'
-pkgname="ruby-${_gemname}"
-pkgver=3.2.3
-pkgrel=1
-pkgdesc='CSV Reading and Writing '
-arch=('any')
-url="https://github.com/ruby/${_gemname}"
-license=('BSD' 'RUBY')
-depends=('ruby')
-checkdepends=('ruby-rake')
-options=(!emptydirs)
-source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('104b27991f43c9d18a7a0f9db38b32bf638b7b73e25376f1a404b76910a348bf8bf7850a9a671658b928bacfbe288176cfa14dce2ae1524c64dfbeb52138a482')
-
-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}"
-
- gem build "${_gemname}.gemspec"
-}
-
-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" \
- "${_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}"
-}
Copied: ruby-csv/repos/community-any/PKGBUILD (from rev 1276448, ruby-csv/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-24 15:26:10 UTC (rev 1276449)
@@ -0,0 +1,78 @@
+# Maintainer: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
+
+_gemname='csv'
+pkgname="ruby-${_gemname}"
+pkgver=3.2.4
+pkgrel=1
+pkgdesc='CSV Reading and Writing '
+arch=('any')
+url="https://github.com/ruby/${_gemname}"
+license=('BSD' 'RUBY')
+depends=('ruby')
+checkdepends=('ruby-rake')
+options=(!emptydirs)
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('b024132fda678347fae4b237dfbf9f261ca3bf46c22c627db4ad8c6f17a690ab97a8ad4ffe693f6ed3c5a71620408f15ccee9d27c36196c7b51ca9abc09029a5')
+
+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}"
+
+ gem build "${_gemname}.gemspec"
+}
+
+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" \
+ "${_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