Skip to content
Snippets Groups Projects
Commit 83e4ddc7 authored by A. Wilcox's avatar A. Wilcox Committed by Timo Teräs
Browse files

main/ruby: modernise, move 'make test' to check phase

parent 847946ac
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
pkgname=ruby
pkgver=2.4.1
_abiver="${pkgver%.*}.0"
pkgrel=4
pkgrel=5
pkgdesc="An object-oriented language for quick and easy programming"
url="http://www.ruby-lang.org/en/"
arch="all"
......@@ -44,7 +44,7 @@ case "$CARCH" in
esac
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
autoconf
......@@ -78,19 +78,22 @@ build() {
--enable-pthread \
--disable-rpath \
--enable-shared \
--with-mantype=man \
|| return 1
make || return 1
make test || return 1
--with-mantype=man
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
install -m 644 -D COPYING \
"$pkgdir"/usr/share/licenses/$pkgname/COPYING || return 1
"$pkgdir"/usr/share/licenses/$pkgname/COPYING
rm -R "$pkgdir"$_gemdir/cache/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment