aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-tins/APKBUILD
blob: 3dc00fec05e44fe84241522b84b8e7d2236c0f3c (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.9.0
pkgrel=1
pkgdesc="Useful ruby library for tools"
url="https://github.com/flori/tins"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=""
makedepends="ruby-dev"
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="e6c378c48298bf304ca5f1908fe9ec3d  tins-0.9.0.gem"
sha256sums="6cdd0469d8d8cf1ab5acea24a4dca2adb3c49e365171cd7cf28b2dd8bf3f249c  tins-0.9.0.gem"
sha512sums="05dbebcefafdf6e65facdbd885cba83b8aa6454db14e12b6b59e88947f38b63954f3a1195ad3d04fd5d29890bdb7cf0a025f72a8a9694cef07a31fcc16170c94  tins-0.9.0.gem"