From fd05158e9f3c81a047cd9d1f26bbc74ad339a565 Mon Sep 17 00:00:00 2001 From: Dan Theisen Date: Wed, 6 Oct 2021 17:54:43 +0000 Subject: user/ruby-reline: new package --- user/ruby-reline/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 user/ruby-reline/APKBUILD diff --git a/user/ruby-reline/APKBUILD b/user/ruby-reline/APKBUILD new file mode 100644 index 000000000..0230e3c67 --- /dev/null +++ b/user/ruby-reline/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Dan Theisen +# Maintainer: Dan Theisen +pkgname=ruby-reline +_gemname=${pkgname#ruby-} +pkgver=0.2.7 +pkgrel=0 +pkgdesc="Reline is compatible with the API of Ruby's stdlib 'readline', GNU Readline and Editline" +url="https://github.com/ruby/reline" +arch="all" +license="BSD-2-Clause" +depends="ruby" +checkdepends="ruby-rspec" +makedepends="ruby-rake" +source="ruby-reline-$pkgver.tar.gz::https://github.com/ruby/$_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="3543207d79a9cb5293cefb4771a5d30bfa158915f2ba84db1cd04b1c89b21288542e52a2e43e2ca057bad91c926052dc3ba404319a5eb4044ab054b6c3cab465 ruby-reline-0.2.7.tar.gz" -- cgit v1.2.3-70-g09d2