1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/testing/ruby-terminal-table/APKBUILD
Jakub Jirutka 8b93da716c testing/ruby-terminal-table: new aport
Required for jelyll.
2021-07-01 13:38:53 +02:00

47 lines
1.3 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ruby-terminal-table
_gemname=terminal-table
# NOTE: Before bumping, check version required by jekyll.
pkgver=2.0.0
pkgrel=0
pkgdesc="Ruby ASCII Table Generator, simple and feature rich"
url="https://github.com/tj/terminal-table"
arch="noarch"
license="MIT"
depends="ruby ruby-unicode-display_width~=1"
checkdepends="ruby-rspec"
source="https://github.com/tj/terminal-table/archive/v$pkgver/$_gemname-$pkgver.tar.gz
gemspec.patch
"
builddir="$srcdir/$_gemname-$pkgver"
options="!check" # FIXME: tests require extra dependency: term-ansicolor
build() {
gem build $_gemname.gemspec
}
check() {
rspec .
}
package() {
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
gem install \
--local \
--install-dir "$gemdir" \
--ignore-dependencies \
--no-document \
--verbose \
$_gemname
# Remove unnecessary files and rubbish...
cd "$gemdir"
rm -r cache build_info doc extensions
}
sha512sums="
568542f1fc60cfdb37b14f9d52d6fb6c3ccc36b5c0103c95e3d70fd5e1371c124c97cdea5a4d5a2ec63e34550624b38bd11e0af1073a8eefb3c5fd9eef427576 terminal-table-2.0.0.tar.gz
0539565d0a8d0e21d06ae2c5a9551ae46da6743e50543fd928da64c222181efd1b656bedcc2cbf691703fbeb06c0ffaf5cf169a7f5f91b8f9f6bb788669940fc gemspec.patch
"