# Contributor: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Jakub Jirutka <jakub@jirutka.cz> setvar pkgname = 'ruby-enum' setvar _gemname = "$pkgname" setvar pkgver = '0.7.2' setvar pkgrel = '0' setvar pkgdesc = ""A handy way to define enums in Ruby"" setvar url = ""https://github.com/dblock/ruby-enum"" setvar arch = ""noarch"" setvar license = ""MIT"" setvar depends = ""ruby"" setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/dblock/$pkgname/archive/v$pkgver.tar.gz"" setvar builddir = ""$srcdir/$pkgname-$pkgver"" setvar options = ""!check"" proc build { cd $builddir gem build $_gemname.gemspec } proc package { local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')" local geminstdir="$gemdir/gems/$_gemname-$pkgver" cd $builddir gem install --local \ --install-dir $gemdir \ --ignore-dependencies \ --no-document \ --verbose \ $_gemname rm -r "$gemdir"/cache \ "$gemdir"/build_info \ "$gemdir"/doc \ "$geminstdir"/spec \ "$geminstdir"/*.md } setvar sha512sums = ""6dd8383bd6fb8d32f24c28da35bf19d1e67695968b42b908bbf0cb8b06152c38b604e07ab216e632e818f3b1f52d1dbbda6f8a209d85d51a4c6ae04c218180bf ruby-enum-0.7.2.tar.gz""