summaryrefslogtreecommitdiff
path: root/devel/ruby/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ruby/MAKEPKG')
-rw-r--r--devel/ruby/MAKEPKG43
1 files changed, 43 insertions, 0 deletions
diff --git a/devel/ruby/MAKEPKG b/devel/ruby/MAKEPKG
new file mode 100644
index 0000000..46377df
--- /dev/null
+++ b/devel/ruby/MAKEPKG
@@ -0,0 +1,43 @@
+#!/bin/mkpkg
+# description: Ruby programming language interpreter
+# url: https://www.ruby-lang.org/
+
+name=ruby
+version=4.0.7
+release=1
+depends=(zlib libressl libffi gdbm readline)
+makedeps=(autoconf rust)
+source=(https://cache.ruby-lang.org/pub/ruby/4.0/ruby-$version.tar.gz)
+sha256sums=(
+ "911ace20f90d068ca0e4dda6d0e4f0f81e52e52f2dd4f4004c721e253412e82d"
+)
+
+patch() {
+ cd ruby-$version
+ sed -i '/-C lto=thin/d' common.mk
+}
+
+build() {
+ cd ruby-$version
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libdir=/usr/lib \
+ --enable-shared \
+ --disable-install-doc \
+ --with-openssl-dir=/usr \
+ --without-gmp \
+ --with-opt-dir=/usr
+
+ make RUSTC="rustc -C embed-bitcode=no"
+ make RUSTC="rustc -C embed-bitcode=no" DESTDIR=$PKG install
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh
+