diff options
author | Zach van Rijn <me@zv.io> | 2021-10-16 01:12:16 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-10-16 01:12:16 +0000 |
commit | 6ca2ba5c92a7b0679a552725678a40ed5eb4ded5 (patch) | |
tree | ddc300a108dc4d10ed5ed0188175f54452e8bb0e /user/ruby-rubygems-tasks/APKBUILD | |
parent | aa90e62ce757fa863685f44ce23f129f56b3225f (diff) | |
parent | c0f3f757abe6ea39579119b99e9996c4e2bf0e11 (diff) | |
download | packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.tar.gz packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.tar.bz2 packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.tar.xz packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.zip |
Merge branch 'master' into 'awilfox/bump/2021-09-system-abipreserve'
# Conflicts:
# system/curl/APKBUILD
Diffstat (limited to 'user/ruby-rubygems-tasks/APKBUILD')
-rw-r--r-- | user/ruby-rubygems-tasks/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/user/ruby-rubygems-tasks/APKBUILD b/user/ruby-rubygems-tasks/APKBUILD new file mode 100644 index 000000000..14dcc9bc5 --- /dev/null +++ b/user/ruby-rubygems-tasks/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Dan Theisen <djt@hxx.in> +# Maintainer: Dan Theisen <djt@hxx.in> +pkgname=ruby-rubygems-tasks +_gemname=${pkgname#ruby-} +pkgver=0.2.5 +pkgrel=0 +pkgdesc="Provides agnostic and unobtrusive Rake tasks for maintaining Ruby Gems" +url="https://github.com/postmodern/rubygems-tasks" +arch="all" +license="MIT" +depends="ruby ruby-irb" +checkdepends="ruby-rspec" +makedepends="ruby-rake" +source="ruby-reline-$pkgver.tar.gz::https://github.com/postmodern/$_gemname/archive/refs/tags/v$pkgver.tar.gz" +builddir="$srcdir/$_gemname-$pkgver" + +build() { + gem build $_gemname.gemspec +} + +check() { + rspec spec +} + +package() { + gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" + + gem install --local \ + --install-dir "$gemdir" \ + --bindir "$pkgdir/usr/bin" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + $_gemname + + # Remove unnecessary files and empty directories. + cd "$gemdir" + rm -r cache build_info doc +} + +sha512sums="518c1a4ccf3720ac16278359ebacf25fee298989ccc672bffc94119b005cbaffe668652c5081de3e6e0c321bfeeca61c6b93ba5d0741d5fa9a8ced34f5e5e889 ruby-reline-0.2.5.tar.gz" |