milis/talimatname/genel/r/ruby23/talimat

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Ruby2.3 yorumlayıcı
2017-06-27 12:32:26 +02:00
# URL: http://www.ruby-lang.org
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: libffi yaml
2017-06-27 12:32:26 +02:00
2017-10-28 14:10:23 +02:00
isim=ruby23
_isim=ruby
2017-07-20 01:14:32 +02:00
_rubyver=2.3
2017-10-28 14:10:23 +02:00
surum=2.3.4
devir=1
kaynak=(http://cache.ruby-lang.org/pub/$_name/${surum%.*}/$_name-$surum.tar.xz)
2017-06-27 12:32:26 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $_name-$surum
2017-07-20 01:14:32 +02:00
PKG_CONFIG=/usr/bin/pkg-config ./configure \
--prefix=/opt/ruby${_rubyver} \
--program-suffix=-${_rubyver} \
--sysconfdir=/etc \
--localstatedir=/var \
--sharedstatedir=/var/lib \
--libexecdir=/usr/lib/ruby \
--enable-shared \
--disable-rpath \
--with-dbm-type=gdbm_compat
make ruby
make test
make DESTDIR="${PKG}" install-nodoc
install -dm755 $PKG//usr/bin
install -dm755 $PKG//usr/lib
for i in erb irb rdoc ri ruby testrb rake gem; do
ln -s /opt/ruby${_rubyver}/bin/$i-${_rubyver} $PKG/usr/bin/$i-${_rubyver}
ln -s /opt/ruby${_rubyver}/bin/$i-${_rubyver} $PKG/opt/ruby${_rubyver}/bin/$i
done
ln -s /opt/$_name$_rubyver/lib/libruby.so.${_rubyver} $PKG/usr/lib/libruby.so.${_rubyver}
install -D -m644 COPYING "${PKG}/usr/share/licenses/ruby${_rubyver}/LICENSE"
install -D -m644 BSDL "${PKG}/usr/share/licenses/ruby${_rubyver}/BSDL"
2017-06-27 12:32:26 +02:00
}