diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-09-07 20:45:23 +0000 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2013-09-08 14:36:46 +0200 |
commit | 46d0f752723d992674433527d5ed5afb8c96a57e (patch) | |
tree | a8725ae4b0bd7367781bb699843a178c4df9a3c3 /testing/ruby-isbn | |
parent | 1e4fa5a1668eb8198db2f881ad1ebb20b900f07b (diff) | |
download | aports-46d0f752723d992674433527d5ed5afb8c96a57e.tar.bz2 aports-46d0f752723d992674433527d5ed5afb8c96a57e.tar.xz |
testing/ruby-isbn: new aport
A library to transform ISBN's from new to used
http://rubygems.org/gems/isbn
Diffstat (limited to 'testing/ruby-isbn')
-rw-r--r-- | testing/ruby-isbn/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/ruby-isbn/APKBUILD b/testing/ruby-isbn/APKBUILD new file mode 100644 index 0000000000..95d1177620 --- /dev/null +++ b/testing/ruby-isbn/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +_gemname=isbn +pkgname=ruby-$_gemname +pkgver=2.0.9 +pkgrel=0 +pkgdesc="A library to transform ISBN's from new to used" +url="http://rubygems.org/gems/isbn" +arch="noarch" +license="MIT" +depends="ruby" +depends_dev="ruby-dev" +makedepends="$depends_dev ruby-gems" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_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="5901fadabb0f742f75e77fad0e31f28c isbn-2.0.9.gem" +sha256sums="f645884282f3a6e5d074b950dfa4bae0e336af570a70ef7017f561ba7e230b48 isbn-2.0.9.gem" +sha512sums="3960c53a764e03d73e3c3574c4a5933e346ef2ea0516448489e5ddeed0f6a13443e31a256474f960a11f2fb1d692cf62bc65c6c99465cc2f1d16f39e5bf156f4 isbn-2.0.9.gem" |