David Runge pushed to branch main at Arch Linux / Packaging / Packages / ruby-activesupport
Commits: aaa2265a by David Runge at 2023-12-24T09:57:59+01:00 Remove unnecessary quotes and curly braces Signed-off-by: David Runge <[email protected]> - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -5,16 +5,16 @@ pkgname=ruby-activesupport pkgver=6.1.4.1 pkgrel=2 pkgdesc='A collection of utility classes and standard library extensions' -arch=('any') +arch=(any) url="https://github.com/rails/rails/tree/master/activesupport" -license=('MIT') -# bootstrap activesupport without i18n (circular dependency) -depends=('ruby' 'ruby-concurrent' 'ruby-i18n' 'ruby-tzinfo' 'ruby-zeitwerk' 'ruby-minitest') -makedepends=('git' 'ruby-rake') +license=(MIT) +# NOTE: bootstrap activesupport without i18n (circular dependency) +depends=(ruby ruby-concurrent ruby-i18n ruby-tzinfo ruby-zeitwerk ruby-minitest) +makedepends=(git ruby-rake) # TODO: package ruby-dalli -checkdepends=('ruby-minitest') +checkdepends=(ruby-minitest) options=(!emptydirs) -source=("${pkgname}-${pkgver}::git+https://github.com/rails/rails#tag=v${pkgver}?signed") +source=($pkgname::git+https://github.com/rails/rails#tag=v$pkgver?signed) sha512sums=('SKIP') validpgpkeys=( '54FE550EA35E26D7C75362C1FC23B6D0F1EEE948' # Rafael Mendonça França <[email protected]> @@ -22,14 +22,15 @@ validpgpkeys=( ) prepare() { - cd "${pkgname}-${pkgver}/activesupport" + cd $pkgname/$_name # we don't do version pinning - sed -r 's|~>|>=|g' -i "${_name}.gemspec" + sed -r 's|~>|>=|g' -i $_name.gemspec } build() { - cd "$pkgname-$pkgver/activesupport" - gem build "${_name}.gemspec" + cd $pkgname/$_name + + gem build $_name.gemspec } # bootstrap activesupport without tests (circular dependency on i18n) @@ -40,17 +41,18 @@ build() { # } package() { - cd "$pkgname-$pkgver/activesupport" local _gemdir="$(gem env gemdir)" + + cd $pkgname/$_name gem install --ignore-dependencies \ --no-user-install \ - -i "${pkgdir}/${_gemdir}" \ - -n "${pkgdir}/usr/bin" \ - ${_name}-${pkgver}.gem + -i "$pkgdir/$_gemdir" \ + -n "$pkgdir/usr/bin" \ + $_name-$pkgver.gem install -vDm 644 MIT-LICENSE \ - "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - cd "${pkgdir}/${_gemdir}" - rm -rvf cache gems/${_name}-${pkgver}/{ext,lib/*/*.so} \ - extensions/*/*/${_name}-${pkgver}/{mkmf.log,gem_make.out} \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "$pkgdir/$_gemdir" + rm -rvf cache gems/$_name-$pkgver/{ext,lib/*/*.so} \ + extensions/*/*/$_name-$pkgver/{mkmf.log,gem_make.out} \ build_info extensions } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-activesupport/-/commit/aaa2265a56a17c866dbf0792b543735fcfcd8cf5 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-activesupport/-/commit/aaa2265a56a17c866dbf0792b543735fcfcd8cf5 You're receiving this email because of your account on gitlab.archlinux.org.
