aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-mini_portile2/APKBUILD
blob: 0a3e04082c57fb7c759551f5245bd7a7fcb49504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ruby-mini_portile2
_gemname=${pkgname#ruby-}
pkgver=2.4.0
pkgrel=0
pkgdesc="Simplistic port-like solution for developers"
url="https://github.com/flavorjones/mini_portile"
arch="noarch"
license="MIT"
depends="ruby"
source="https://rubygems.org/downloads/$_gemname-$pkgver.gem"
options="!check"  # FIXME

package() {
	local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
	local geminstdir="$gemdir/gems/$_gemname-$pkgver"

	gem install \
		--local \
		--install-dir "$gemdir" \
		--ignore-dependencies \
		--no-document \
		--verbose \
		"$srcdir"/$_gemname-$pkgver.gem

	rm -rf "$gemdir"/cache \
		"$geminstdir"/test \
		"$geminstdir"/*.md \
		"$geminstdir"/*.txt \
		"$geminstdir"/*.yml
}

sha512sums="57285f59e81cc4cb60dba88a88477685ca455c6d0e42d368bddef7f1be63b48e0a675c0697f7ad6e0979103ecad4245637f0b6d6a90e6bc1cb22b98db18d1615  mini_portile2-2.4.0.gem"