diff options
Diffstat (limited to 'testing/ruby-tins')
-rw-r--r-- | testing/ruby-tins/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/ruby-tins/APKBUILD b/testing/ruby-tins/APKBUILD new file mode 100644 index 0000000000..ad8679bb46 --- /dev/null +++ b/testing/ruby-tins/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +_gemname=tins +pkgname=ruby-$_gemname +pkgver=0.7.1 +pkgrel=0 +pkgdesc="Useful ruby library for tools" +url="https://github.com/flori/tins" +arch="noarch" +license="MIT" +depends="ruby" +depends_dev="" +makedepends="ruby-dev ruby-gems" +install="" +subpackages="" +source="http://rubygems.org/downloads/$_gemname-$pkgver.gem" + +_builddir="$srcdir"/$_gemname-$pkgver +build() { + mkdir -p "$_builddir" || return 1 + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \ + --ignore-dependencies \ + --verbose \ + --no-rdoc \ + --no-ri \ + || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +package() { + mkdir -p "$pkgdir" || return 1 + cp -ra "$_builddir"/* "$pkgdir"/ || return 1 +} + +md5sums="35df5408c410bee569202df12f9c48ee tins-0.7.1.gem" +sha256sums="71aeb5a2b997bda106a10d783fbebb5c43fc405b23eda7ef2db5d65be721c2c2 tins-0.7.1.gem" +sha512sums="8f58264b2401bea3e218b03fe7df77968f0999941cce1bfeda451e34d42f376ed855a694938684f9c187ad6744b045c1609dd72b544b6bea041080b3af42b74a tins-0.7.1.gem" |