diff options
Diffstat (limited to 'community/ruby-enum/APKBUILD')
-rw-r--r-- | community/ruby-enum/APKBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/community/ruby-enum/APKBUILD b/community/ruby-enum/APKBUILD index 4a69a039d1..1e6f1a3b1b 100644 --- a/community/ruby-enum/APKBUILD +++ b/community/ruby-enum/APKBUILD @@ -9,15 +9,20 @@ url="https://github.com/dblock/ruby-enum" arch="noarch" license="MIT" depends="ruby ruby-i18n" +checkdepends="ruby-rspec" source="$pkgname-$pkgver.tar.gz::https://github.com/dblock/$pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" -options="!check" build() { cd "$builddir" gem build $_gemname.gemspec } +check() { + cd "$builddir" + rspec spec +} + package() { local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')" local geminstdir="$gemdir/gems/$_gemname-$pkgver" |