community/ruby-ffi: enable tests, fix license

This commit is contained in:
Leo 2019-06-03 03:04:13 -03:00
parent 7d88323e8b
commit bdcff9d4e8

View File

@ -3,21 +3,18 @@
pkgname=ruby-ffi
_gemname=ffi
pkgver=1.10.0
pkgrel=0
pkgrel=1
pkgdesc="Ruby FFI library"
url="https://github.com/ffi/ffi"
arch="all"
license="BSD"
license="BSD-3-Clause"
makedepends="libffi-dev ruby ruby-dev"
install="$pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/ffi/$_gemname/archive/$pkgver.tar.gz
gemspec.patch"
builddir="$srcdir/$_gemname-$pkgver"
options="!check" # does not work with PaX (it'd need paxmark -m /usr/bin/ruby)
build() {
cd "$builddir"
gem build $_gemname.gemspec
gem install --local \
--install-dir dist \
@ -28,8 +25,6 @@ build() {
}
check() {
cd "$builddir"
# Install missing development dependencies needed and used only for running
# tests. We can't install them easily with bundler, because there's
# no way how to force it to NOT update already satisifed dependencies.