ruby 3.3.5-2

This commit is contained in:
xhaa123 2024-11-03 23:45:12 +08:00
parent e73e355e98
commit b8cc196494

View File

@ -6,12 +6,29 @@
# Maintainer: Future Linux Team <future_linux@163.com> # Maintainer: Future Linux Team <future_linux@163.com>
pkgname=ruby pkgname=ruby
pkgver=3.3.5 pkgver=3.3.5
pkgrel=1 pkgrel=2
pkgdesc="An object-oriented language for quick and easy programming" pkgdesc="An object-oriented language for quick and easy programming"
arch=('x86_64') arch=('x86_64')
url="https://www.ruby-lang.org/en" url="https://www.ruby-lang.org/en"
license=('BSD' 'custom') license=('BSD-2-Clause')
depends=('gdbm' 'openssl' 'libffi' 'libyaml' 'libxcrypt' 'gmp' 'zlib') depends=(
'gcc-libs'
'gdbm'
'glibc'
'gmp'
'libffi'
'libxcrypt'
'libyaml'
'openssl'
'readline'
'zlib'
)
makedepends=(
'doxygen'
'graphviz'
'rustc'
'tk'
)
options=('!emptydirs' '!lto') options=('!emptydirs' '!lto')
source=(https://cache.ruby-lang.org/pub/ruby/${pkgver/%.*}/${pkgname}-${pkgver}.tar.xz) source=(https://cache.ruby-lang.org/pub/ruby/${pkgver/%.*}/${pkgname}-${pkgver}.tar.xz)
sha256sums=(51aec7ea89b46125a2c9adc6f36766b65023d47952b916b1aed300ddcc042359) sha256sums=(51aec7ea89b46125a2c9adc6f36766b65023d47952b916b1aed300ddcc042359)
@ -22,19 +39,22 @@ build() {
export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
${CONFIGURE} \ ${CONFIGURE} \
--disable-rpath \ --disable-rpath \
--enable-shared \ --enable-shared \
--without-valgrind \ --without-valgrind \
--without-baseruby \ --without-baseruby \
ac_cv_func_qsort_r=no \ ac_cv_func_qsort_r=no \
--with-dbm-type=gdbm_compat \
--docdir=/usr/share/doc/${pkgname}-${pkgver} --docdir=/usr/share/doc/${pkgname}-${pkgver}
make capi make
make rdoc capi
} }
package() { package() {
cd ${pkgname}-${pkgver} cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install make DESTDIR=${pkgdir} install-nodoc
make DESTDIR=${pkgdir} install-doc install-capi
} }