diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-26 01:40:46 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-26 01:49:18 +0100 |
commit | f1d10c796c3baee57cee511436db08aefb89a81b (patch) | |
tree | fc667d27bf9d9d4420d2e36d87798037bef820e8 /community/ruby-i18n/APKBUILD | |
parent | 4ff38d5dcae8bcb35e1d849ba82ebe5e6010e69d (diff) | |
download | aports-f1d10c796c3baee57cee511436db08aefb89a81b.tar.bz2 aports-f1d10c796c3baee57cee511436db08aefb89a81b.tar.xz |
community/ruby-i18n: move from testing
Diffstat (limited to 'community/ruby-i18n/APKBUILD')
-rw-r--r-- | community/ruby-i18n/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/ruby-i18n/APKBUILD b/community/ruby-i18n/APKBUILD new file mode 100644 index 0000000000..ca5ed3d549 --- /dev/null +++ b/community/ruby-i18n/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=ruby-i18n +_gemname=${pkgname#ruby-} +pkgver=0.9.1 +pkgrel=0 +pkgdesc="New wave Internationalization support for Ruby" +url="https://github.com/svenfuchs/i18n" +arch="noarch" +license="MIT" +depends="ruby ruby-concurrent-ruby" +options="!check" # tests require additional deps that we don't have yet +source="$pkgname-$pkgver.tar.gz::https://github.com/svenfuchs/$_gemname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_gemname-$pkgver" + +build() { + cd "$builddir" + gem build $_gemname.gemspec +} + +package() { + local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')" + + cd "$builddir" + gem install --local \ + --install-dir "$gemdir" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + $_gemname + + # Remove unnecessary files. + cd "$gemdir" + rm -r cache/ build_info/ doc/ + cd gems/$_gemname-$pkgver + rm -r gemfiles/ test/ *.md *LICENSE* +} + +sha512sums="9726dea0b5aff12e6ddf499ddd5dea0853d345241b1ff19d6f97106a3f5f592b3336d2afddcd0717d15ed04c8098a8f9ea2870f1388353e073f78add2f0a77a5 ruby-i18n-0.9.1.tar.gz" |