[arch-commits] Commit in ruby-tzinfo/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Wed Jul 20 08:29:53 UTC 2022
Date: Wednesday, July 20, 2022 @ 08:29:53
Author: dvzrv
Revision: 1254827
archrelease: copy trunk to community-any
Added:
ruby-tzinfo/repos/community-any/PKGBUILD
(from rev 1254826, ruby-tzinfo/trunk/PKGBUILD)
Deleted:
ruby-tzinfo/repos/community-any/PKGBUILD
----------+
PKGBUILD | 128 +++++++++++++++++++++++++++++++++++++------------------------
1 file changed, 78 insertions(+), 50 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-07-20 08:29:13 UTC (rev 1254826)
+++ PKGBUILD 2022-07-20 08:29:53 UTC (rev 1254827)
@@ -1,50 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=tzinfo
-pkgname=ruby-tzinfo
-pkgver=2.0.4
-pkgrel=1
-pkgdesc='Daylight savings aware transformations between times in different time zones'
-arch=('any')
-url="https://github.com/tzinfo/tzinfo"
-license=('MIT')
-depends=('ruby' 'ruby-concurrent')
-makedepends=('ruby-rake' 'ruby-rdoc')
-# TODO: package ruby-simplecov
-# checkdepends=('ruby-minitest' 'ruby-simplecov')
-options=(!emptydirs)
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_name}/${_name}/archive/v${pkgver}.tar.gz")
-sha512sums=('5b2ec73f737009ba21dac7dbb9504235fdef14dc45a6450e1218ba9e53dd29735ab4fa6c2854271916cc5c0244e09ae7ab19467408b72b9b82ca238e14d3fa4f')
-b2sums=('0c7ef231767b6fc00cf95b3e1c2037894b14dfe832eaedb3f4b7c60a884ab6f7121243af5b62acf47d02da28395e7390f968421a3a3a2d731deb079e9fc51bfa')
-
-prepare() {
- mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
- cd "${pkgname}-${pkgver}"
- # we don't do version pinning
- sed -r 's|~>|>=|g' -i ${_name}.gemspec Gemfile
-}
-
-build() {
- cd ${pkgname}-${pkgver}
- gem build "${_name}.gemspec"
-}
-
-# check(){
-# cd "${pkgname}-${pkgver}"
-# rake test
-# }
-
-package() {
- cd ${pkgname}-${pkgver}
- local _gemdir="$(gem env gemdir)"
- gem install --ignore-dependencies \
- --no-user-install \
- -i "${pkgdir}/${_gemdir}" \
- -n "${pkgdir}/usr/bin" \
- ${_name}-${pkgver}.gem
- install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
- # removing all unneeded stuff
- cd "${pkgdir}/${_gemdir}"
- rm -rvf cache gems/${_name}-${pkgver}/{ext,lib/*/*.so,*.gemspec} \
- extensions/*/*/${_name}-${pkgver}/{mkmf.log,gem_make.out}
-}
Copied: ruby-tzinfo/repos/community-any/PKGBUILD (from rev 1254826, ruby-tzinfo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-07-20 08:29:53 UTC (rev 1254827)
@@ -0,0 +1,78 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=tzinfo
+pkgname=ruby-tzinfo
+pkgver=2.0.5
+pkgrel=1
+pkgdesc='Daylight savings aware transformations between times in different time zones'
+arch=(any)
+url="https://github.com/tzinfo/tzinfo"
+license=(MIT)
+depends=(ruby ruby-concurrent)
+makedepends=(ruby-rake ruby-rdoc)
+# TODO: package ruby-simplecov
+# checkdepends=(ruby-minitest ruby-simplecov)
+options=(!emptydirs)
+source=($pkgname-$pkgver.tar.gz::https://github.com/$_name/$_name/archive/v$pkgver.tar.gz)
+sha512sums=('a3c59b1f390b186356b9219b0fb18bb762d2123936553738e1068ba46bf0206c5a0394b1d46b5c7b891aa55b8afa839858837511f53e3ef0eb0e85fe3f23b57a')
+b2sums=('44e6d65dadc4828e4b8803c0badf381e18afe7412e090c4d91147b144f300a8c0e3189bc8e8325625678a57ea6a1179a1ed277f5fb54230ce77c46ba6b0100c7')
+
+prepare() {
+ cd "$_name-$pkgver"
+ # we do not do version pinning
+ sed --regexp-extended 's,~>,>=,g' --in-place *.gemspec Gemfile Rakefile
+ # lockfiles should be removed
+ rm -fv Gemfile.lock
+ # do not rely on Gemfiles (unless the project *really* needs it)
+ rm -fv Gemfile
+}
+
+build() {
+ cd $_name-$pkgver
+ gem build $_name.gemspec
+}
+
+# check(){
+# cd $_name-$pkgver
+# rake test
+# }
+
+package() {
+ local _gemdir="$(gem env gemdir)"
+
+ cd $_name-$pkgver
+ gem install \
+ --ignore-dependencies \
+ --no-user-install \
+ --install-dir "$pkgdir/$_gemdir" \
+ --bindir "$pkgdir/usr/bin" \
+ "$_name-$pkgver.gem"
+
+ # remove unrepreducible files
+ rm -frv \
+ "$pkgdir/$_gemdir/cache/" \
+ "$pkgdir/$_gemdir/gems/$_name-$pkgver/vendor/" \
+ "$pkgdir/$_gemdir/doc/$_name-$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 -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}
More information about the arch-commits
mailing list