mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/ruby2.7 to 2.7.6-2
This commit is contained in:
parent
7f47ec2316
commit
bbb931eea7
1 changed files with 13 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
pkgname=ruby2.7
|
||||
pkgver=2.7.6
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
arch=(x86_64)
|
||||
pkgdesc='An object-oriented language for quick and easy programming, version 2.7'
|
||||
url='https://www.ruby-lang.org/en/'
|
||||
|
@ -19,13 +19,25 @@ optdepends=(
|
|||
)
|
||||
makedepends=(tk)
|
||||
options=(!emptydirs !lto) # Disable LTO until fixes for https://bugs.ruby-lang.org/issues/18062 released
|
||||
_osslver=3.0.0
|
||||
source=(https://cache.ruby-lang.org/pub/ruby/${pkgver:0:3}/ruby-${pkgver}.tar.xz
|
||||
ruby2.7-do-not-depend-on-ext-openssl-deprecation-rb.patch::https://github.com/ruby/ruby/commit/28f3e038805a4f396f228c6884c531677c075867.patch
|
||||
ruby-openssl-$_osslver.tar.xz::https://github.com/ruby/openssl/archive/refs/tags/v$_osslver.tar.gz
|
||||
0001-Use-only-unsigned-long-for-rb_serial_t.patch)
|
||||
sha512sums=('e86410b59d5917786fe43b00fd75dedd0e7f84611286b9274c542d2e562088fcee6bcc6c2596c30ccf793280d2bac6bfbb2619ef0513b3ca31f10f88684c7b1f'
|
||||
'914dec716bbc9d0e7c7e7f76e599fc545f4adcc7f84a16c31e6b8badc3556dfa1c21c4a5fe1d04cf3fc2d3930cc769c34f4b5f638404f7c023bffdb49a33bef0'
|
||||
'076d2924b61c4f7704b47718a33732fb5285a3af39f328ed9e83add36589da99dfae73b3e893398fc3f2a74dcbead0b66edc682040fa1b48f9530894c7187f95'
|
||||
'ae1a9e00ab3bfb1bf29cda872ddf6d64dd6ec5745bd25f00e3692a1d769dd81bbce8921ed63e0f5776ec3e610655087b739fde26ede9649c6c2e095b27381926')
|
||||
|
||||
prepare() {
|
||||
cd ruby-${pkgver}
|
||||
patch -Np1 -i ../ruby2.7-do-not-depend-on-ext-openssl-deprecation-rb.patch
|
||||
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
|
||||
|
||||
# fixes https://bugs.ruby-lang.org/issues/9507
|
||||
[[ $CARCH == 'arm' ]] && patch -Np1 -i ../0001-Use-only-unsigned-long-for-rb_serial_t.patch || true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue