aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-file-tail/APKBUILD
blob: d27b3e7d4ec85ce395c1197d0288e58656080460 (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: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
_gemname=file-tail
pkgname=ruby-$_gemname
pkgver=1.0.12
pkgrel=0
pkgdesc="Small library that allows Ruby to tail files."
url="http://flori.github.com/file-tail/"
arch="noarch"
license="GPL2"
depends="ruby ruby-tins"
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="3875bf548788c00627b12cd486b206df  file-tail-1.0.12.gem"
sha256sums="32c490ba6b9f4036291e4e03d20ffffbfd40d65875b50c74e7b7cc23b9edfd57  file-tail-1.0.12.gem"
sha512sums="ec289569e4fdb2f18448c2853916da5c501af2f1be6ad50284ee8404cc259ac9ff9fb88251b889899aa917bc015be78ba385b8050cba22387e772975736a6b1f  file-tail-1.0.12.gem"