aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-tins/APKBUILD
blob: ad8679bb469aaf8a2fb6164479d3d1e02ed555f5 (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
35
36
37
38
39
40
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
_gemname=tins
pkgname=ruby-$_gemname
pkgver=0.7.1
pkgrel=0
pkgdesc="Useful ruby library for tools"
url="https://github.com/flori/tins"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=""
makedepends="ruby-dev ruby-gems"
install=""
subpackages=""
source="http://rubygems.org/downloads/$_gemname-$pkgver.gem"

_builddir="$srcdir"/$_gemname-$pkgver
build() {
	mkdir -p "$_builddir" || return 1
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \
		--ignore-dependencies \
		--verbose \
		--no-rdoc \
		--no-ri \
		|| return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

package() {
	mkdir -p "$pkgdir" || return 1
	cp -ra "$_builddir"/* "$pkgdir"/ || return 1
}

md5sums="35df5408c410bee569202df12f9c48ee  tins-0.7.1.gem"
sha256sums="71aeb5a2b997bda106a10d783fbebb5c43fc405b23eda7ef2db5d65be721c2c2  tins-0.7.1.gem"
sha512sums="8f58264b2401bea3e218b03fe7df77968f0999941cce1bfeda451e34d42f376ed855a694938684f9c187ad6744b045c1609dd72b544b6bea041080b3af42b74a  tins-0.7.1.gem"