Commit 7904d45c authored by Natanael Copa's avatar Natanael Copa
Browse files

extra/ruby: set arch to CARCH, disable distcc/ccache

the CC variable is remembered in rbconfig.rb.
fixes #1
parent 70cea3c4
......@@ -7,7 +7,7 @@ pkgrel=2
pkgdesc="An object-oriented language for quick and easy programming"
depends="zlib openssl libiconv gdbm db readline"
makedepends="zlib-dev openssl-dev libiconv-dev gdbm-dev db-dev readline-dev"
subpackages="$pkgname-doc $pkgname-dev"
......@@ -22,13 +22,21 @@ build() {
# as it's risky with newer compilers to leave it as it is.
export CFLAGS="$CFLAGS -fno-omit-frame-pointer -fno-strict-aliasing"
./configure --prefix=/usr \
# turn off distcc/ccache
export CC=cc
./configure --host=${CHOST:-i486-alpine-linux-uclibc} \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-sitedir='/usr/local/lib/site_ruby' \
--with-extra-site-search-path='/usr/lib/site_ruby/$(ruby_ver)/i686-linux' \
make || return 1
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}"/COPYING || return 1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment