community/ruby to 3.0.4-20

This commit is contained in:
Kevin Mihelich 2022-11-05 02:39:03 +00:00
parent a16a29761a
commit 7f47ec2316

View file

@ -11,14 +11,27 @@
pkgname=(ruby ruby-docs ruby-stdlib ruby-bundledgems)
pkgver=3.0.4
pkgrel=18
pkgrel=20
arch=(x86_64)
url='https://www.ruby-lang.org/en/'
license=(BSD custom)
makedepends=(gdbm openssl libffi doxygen graphviz libyaml ttf-dejavu tk)
options=(debug !emptydirs !lto) # Disable LTO until fixes for https://bugs.ruby-lang.org/issues/18062 released
source=(https://cache.ruby-lang.org/pub/ruby/${pkgver:0:3}/ruby-${pkgver}.tar.xz)
sha512sums=('53bf7dd403b0c68af9691882ad8ed7422c8d1f496627428fb4c3caf0b0313715524b744c5f453aced2d49e16e55f3f45b46b9a77aa3097dbfcae7caa0208194b')
_osslver=3.0.0
source=(https://cache.ruby-lang.org/pub/ruby/${pkgver:0:3}/ruby-${pkgver}.tar.xz
ruby-openssl-$_osslver.tar.xz::https://github.com/ruby/openssl/archive/refs/tags/v$_osslver.tar.gz)
sha512sums=('53bf7dd403b0c68af9691882ad8ed7422c8d1f496627428fb4c3caf0b0313715524b744c5f453aced2d49e16e55f3f45b46b9a77aa3097dbfcae7caa0208194b'
'076d2924b61c4f7704b47718a33732fb5285a3af39f328ed9e83add36589da99dfae73b3e893398fc3f2a74dcbead0b66edc682040fa1b48f9530894c7187f95')
prepare() {
cd ruby-${pkgver}
rm -rf ext/openssl test/openssl
mv ../openssl-$_osslver/ext/openssl ext
mv ../openssl-$_osslver/lib ext/openssl
mv ../openssl-$_osslver/{History.md,openssl.gemspec} ext/openssl
mv ../openssl-$_osslver/test/openssl test
}
build() {
cd ruby-${pkgver}