mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 00:34:41 +02:00
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ruby-public_suffix
|
|
_gemname=public_suffix
|
|
pkgver=6.0.1
|
|
pkgrel=1
|
|
pkgdesc="Domain name parser for Ruby based on the Public Suffix List"
|
|
url="https://simonecarletti.com/code/publicsuffix/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="ruby"
|
|
source="https://github.com/weppos/publicsuffix-ruby/archive/v$pkgver/ruby-public_suffix-$pkgver.tar.gz
|
|
gemspec.patch
|
|
"
|
|
builddir="$srcdir/publicsuffix-ruby-$pkgver"
|
|
options="!check" # FIXME: tests require additional dependencies
|
|
|
|
build() {
|
|
gem build $_gemname.gemspec
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
sha512sums="
|
|
31300000fe1a29bc6cd723891b0a7459a2b85d02b468128bf8c7a0513afd87a77d3d444dce5a6fcabe045c8acf35eab181308e912cafd0c96b4190e593f346bc ruby-public_suffix-6.0.1.tar.gz
|
|
d9bd5ca91822b12f716fc7be36385872cffe7326a49e591ebb2619b0dc5abf1141516c656a97228608980dbbc980b7edda8316d5382cacf657ced2c79609610a gemspec.patch
|
|
"
|