1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/ruby-unicode-display_width/APKBUILD
2025-04-22 23:19:27 +02:00

48 lines
1.4 KiB
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ruby-unicode-display_width
_gemname=unicode-display_width
# NOTE: Before bumping, check version required by jekyll.
pkgver=2.6.0
pkgrel=1
pkgdesc="Monospace Unicode character width in Ruby"
url="https://github.com/janlelis/unicode-display_width"
arch="noarch"
license="MIT"
depends="ruby"
checkdepends="ruby-rspec"
source="https://github.com/janlelis/unicode-display_width/archive/v$pkgver/$_gemname-$pkgver.tar.gz
tests-skip-emoji.patch
gemspec.patch
"
builddir="$srcdir/$_gemname-$pkgver"
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 plugins
}
sha512sums="
f67178a3907175575038204d84a71a466bafe73f9519bdd65b4ca6fa0dd9a1ff21937daa7914ff2881c3d7343a16f22863d7bfe6dd5e223c3d44fed730abe7e4 unicode-display_width-2.6.0.tar.gz
9c77096c0f942119a863239a5abb8e0bde20f865b61706038d753ad20dbfe408d1d0d08256ab9c03561e6966e442a85b1a8ed9b049ab1bce924e3a5545624ac2 tests-skip-emoji.patch
95a5769602c1f06e76c73896367db972fea2cb5bbeb8ddcf70e12097563f6651f52eb1ab2482cea69c16fab03bfc71bf5dc33481dfd8974d5f725a19b8519c45 gemspec.patch
"