mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
Most of these updates is based on data from https://repology.org/, detection based on permanent redirect from http:// to https://. $source urls are updated when they contain $url as substring.
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ruby-multi_json
|
|
_gemname=${pkgname#ruby-}
|
|
pkgver=1.12.2
|
|
pkgrel=0
|
|
pkgdesc="A gem to provide easy switching between different JSON backends"
|
|
url="https://rubygems.org/gems/multi_json"
|
|
arch="noarch"
|
|
license="custom"
|
|
depends="ruby"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/intridea/$_gemname/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_gemname-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cd "$builddir"
|
|
sed -i '/spec.signing_key/d' $_gemname.gemspec
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
gem build $_gemname.gemspec
|
|
}
|
|
|
|
package() {
|
|
local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')"
|
|
local geminstdir="$gemdir/gems/$_gemname-$pkgver"
|
|
|
|
cd "$builddir"
|
|
|
|
gem install --local \
|
|
--install-dir "$gemdir" \
|
|
--ignore-dependencies \
|
|
--no-document \
|
|
--verbose \
|
|
$_gemname
|
|
|
|
rm "$geminstdir"/*.md
|
|
}
|
|
|
|
sha512sums="bbbdd05a6dd12052aa3e09389f47212f15799310d5c265057f7ca801622d32295d1f0844b37e51f8f1fd2d48e4430234f99bc6de4b9ed149e81d9a33a831e6d9 ruby-multi_json-1.12.2.tar.gz"
|