diff options
Diffstat (limited to 'unmaintained/ruby-tins/APKBUILD')
-rw-r--r-- | unmaintained/ruby-tins/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/unmaintained/ruby-tins/APKBUILD b/unmaintained/ruby-tins/APKBUILD new file mode 100644 index 0000000000..3dc00fec05 --- /dev/null +++ b/unmaintained/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.9.0 +pkgrel=1 +pkgdesc="Useful ruby library for tools" +url="https://github.com/flori/tins" +arch="noarch" +license="MIT" +depends="ruby" +depends_dev="" +makedepends="ruby-dev" +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="e6c378c48298bf304ca5f1908fe9ec3d tins-0.9.0.gem" +sha256sums="6cdd0469d8d8cf1ab5acea24a4dca2adb3c49e365171cd7cf28b2dd8bf3f249c tins-0.9.0.gem" +sha512sums="05dbebcefafdf6e65facdbd885cba83b8aa6454db14e12b6b59e88947f38b63954f3a1195ad3d04fd5d29890bdb7cf0a025f72a8a9694cef07a31fcc16170c94 tins-0.9.0.gem" |