Date: Wednesday, April 5, 2017 @ 09:33:18 Author: svenstaro Revision: 220556
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: ruby2.3/repos/community-staging-i686/ ruby2.3/repos/community-staging-i686/PKGBUILD (from rev 220555, ruby2.3/trunk/PKGBUILD) ruby2.3/repos/community-staging-x86_64/ ruby2.3/repos/community-staging-x86_64/PKGBUILD (from rev 220555, ruby2.3/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 65 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 65 ++++++++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+) Copied: ruby2.3/repos/community-staging-i686/PKGBUILD (from rev 220555, ruby2.3/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-04-05 09:33:18 UTC (rev 220556) @@ -0,0 +1,65 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Sergey Shatunov <m...@prok.pw> +# Contributor: Jonne Haß <m...@jhass.eu> +# Contributor: Thomas Dziedzic <gos...@gmail.com> +# Contributor: Allan McRae <al...@archlinux.org> +# Contributor: John Proctor <jproc...@prium.net> +# Contributor: Jeramy Rutley <jrut...@gmail.com> + +_rubyver=2.3 +pkgname=ruby2.3 +pkgver=${_rubyver}.4 +pkgdesc='An object-oriented language for quick and easy programming' +pkgrel=2 +arch=(i686 x86_64) +url='http://www.ruby-lang.org/en/' +license=(BSD custom) +depends=(gdbm openssl-1.0 libffi libyaml gmp zlib) +optdepends=('tk: for Ruby/TK') +makedepends=(gdbm openssl-1.0 libffi doxygen graphviz libyaml ttf-dejavu tk) +options=(!emptydirs) +source=(https://cache.ruby-lang.org/pub/ruby/${pkgver:0:3}/ruby-${pkgver}.tar.xz) +sha512sums=('9e3adc2de6703e50e75db37db2981006d4c69759929d61db6a0d63627cfe5977d0ad66d2c69d7161cfc0c0d1c2cb38e5181a06ccd2790df2f72ec25c2ad01e02') + +build() { + cd ruby-${pkgver} + + export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig + 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 +} + +check() { + cd ruby-${pkgver} + + make test +} + +package() { + cd ruby-${pkgver} + + make DESTDIR="${pkgdir}" install-nodoc + + install -dm755 $pkgdir/usr/bin + install -dm755 $pkgdir/usr/lib + + for i in erb irb rdoc ri ruby testrb rake gem; do + ln -s /opt/$pkgname/bin/$i-${_rubyver} $pkgdir/usr/bin/$i-${_rubyver} + ln -s /opt/$pkgname/bin/$i-${_rubyver} $pkgdir/opt/$pkgname/bin/$i + done + + ln -s /opt/$pkgname/lib/libruby.so.${_rubyver} $pkgdir/usr/lib/libruby.so.${_rubyver} + + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" + install -D -m644 BSDL "${pkgdir}/usr/share/licenses/$pkgname/BSDL" +} Copied: ruby2.3/repos/community-staging-x86_64/PKGBUILD (from rev 220555, ruby2.3/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-04-05 09:33:18 UTC (rev 220556) @@ -0,0 +1,65 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Sergey Shatunov <m...@prok.pw> +# Contributor: Jonne Haß <m...@jhass.eu> +# Contributor: Thomas Dziedzic <gos...@gmail.com> +# Contributor: Allan McRae <al...@archlinux.org> +# Contributor: John Proctor <jproc...@prium.net> +# Contributor: Jeramy Rutley <jrut...@gmail.com> + +_rubyver=2.3 +pkgname=ruby2.3 +pkgver=${_rubyver}.4 +pkgdesc='An object-oriented language for quick and easy programming' +pkgrel=2 +arch=(i686 x86_64) +url='http://www.ruby-lang.org/en/' +license=(BSD custom) +depends=(gdbm openssl-1.0 libffi libyaml gmp zlib) +optdepends=('tk: for Ruby/TK') +makedepends=(gdbm openssl-1.0 libffi doxygen graphviz libyaml ttf-dejavu tk) +options=(!emptydirs) +source=(https://cache.ruby-lang.org/pub/ruby/${pkgver:0:3}/ruby-${pkgver}.tar.xz) +sha512sums=('9e3adc2de6703e50e75db37db2981006d4c69759929d61db6a0d63627cfe5977d0ad66d2c69d7161cfc0c0d1c2cb38e5181a06ccd2790df2f72ec25c2ad01e02') + +build() { + cd ruby-${pkgver} + + export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig + 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 +} + +check() { + cd ruby-${pkgver} + + make test +} + +package() { + cd ruby-${pkgver} + + make DESTDIR="${pkgdir}" install-nodoc + + install -dm755 $pkgdir/usr/bin + install -dm755 $pkgdir/usr/lib + + for i in erb irb rdoc ri ruby testrb rake gem; do + ln -s /opt/$pkgname/bin/$i-${_rubyver} $pkgdir/usr/bin/$i-${_rubyver} + ln -s /opt/$pkgname/bin/$i-${_rubyver} $pkgdir/opt/$pkgname/bin/$i + done + + ln -s /opt/$pkgname/lib/libruby.so.${_rubyver} $pkgdir/usr/lib/libruby.so.${_rubyver} + + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" + install -D -m644 BSDL "${pkgdir}/usr/share/licenses/$pkgname/BSDL" +}