milis/talimatname/genel/r/ruby23/talimat

43 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Ruby2.3 yorumlayıcı
# URL: http://www.ruby-lang.org
# Paketçi: milisarge yakar
# Gerekler: libffi yaml
# Grup: geliştirme
isim=ruby23
surum=2.3.8
devir=1
kaynak=(https://cache.ruby-lang.org/pub/${isim:0:4}/${surum:0:3}/${isim:0:4}-$surum.tar.xz)
derle() {
cd ${isim:0:4}-$surum
PKG_CONFIG=/usr/bin/pkg-config ./configure \
--prefix=/opt/${isim:0:4}${surum:0:3} \
--program-suffix=-${surum:0:3} \
--sysconfdir=/etc \
--localstatedir=/var \
--sharedstatedir=/var/lib \
--libexecdir=/usr/lib/${isim:0:4} \
--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/${isim:0:4}${surum:0:3}/bin/$i-${surum:0:3} $PKG/usr/bin/$i-${surum:0:3}
ln -s /opt/${isim:0:4}${surum:0:3}/bin/$i-${surum:0:3} $PKG/opt/${isim:0:4}${surum:0:3}/bin/$i
done
ln -s /opt/${isim:0:4}${surum%.*}/lib/libruby.so.${surum%.*} $PKG/usr/lib/libruby.so.${surum%.*}
install -D -m644 COPYING "${PKG}/usr/share/licenses/${isim:0:4}${surum%.*}/LICENSE"
install -D -m644 BSDL "${PKG}/usr/share/licenses/${isim:0:4}${surum%.*}/BSDL"
}