ruby/PKGBUILD

61 lines
1.5 KiB
Bash
Raw Permalink Normal View History

2024-10-16 01:40:59 +08:00
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=ruby
2024-10-16 01:46:10 +08:00
pkgver=3.3.5
2024-11-03 23:45:12 +08:00
pkgrel=2
2024-10-16 01:40:59 +08:00
pkgdesc="An object-oriented language for quick and easy programming"
arch=('x86_64')
url="https://www.ruby-lang.org/en"
2024-11-03 23:45:12 +08:00
license=('BSD-2-Clause')
depends=(
'gcc-libs'
'gdbm'
'glibc'
'gmp'
'libffi'
'libxcrypt'
'libyaml'
'openssl'
'readline'
'zlib'
)
makedepends=(
'doxygen'
'graphviz'
'rustc'
'tk'
)
2024-10-16 01:40:59 +08:00
options=('!emptydirs' '!lto')
source=(https://cache.ruby-lang.org/pub/ruby/${pkgver/%.*}/${pkgname}-${pkgver}.tar.xz)
2024-10-16 01:46:10 +08:00
sha256sums=(51aec7ea89b46125a2c9adc6f36766b65023d47952b916b1aed300ddcc042359)
2024-10-16 01:40:59 +08:00
build() {
cd ${pkgname}-${pkgver}
export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
2024-11-03 23:45:12 +08:00
${CONFIGURE} \
--disable-rpath \
--enable-shared \
--without-valgrind \
--without-baseruby \
ac_cv_func_qsort_r=no \
--with-dbm-type=gdbm_compat \
2024-10-16 01:46:10 +08:00
--docdir=/usr/share/doc/${pkgname}-${pkgver}
2024-10-16 01:40:59 +08:00
2024-11-03 23:45:12 +08:00
make
make rdoc capi
2024-10-16 01:40:59 +08:00
}
package() {
cd ${pkgname}-${pkgver}
2024-11-03 23:45:12 +08:00
make DESTDIR=${pkgdir} install-nodoc
make DESTDIR=${pkgdir} install-doc install-capi
2024-10-16 01:40:59 +08:00
}