aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-file-tail/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/ruby-file-tail/APKBUILD')
-rw-r--r--unmaintained/ruby-file-tail/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/unmaintained/ruby-file-tail/APKBUILD b/unmaintained/ruby-file-tail/APKBUILD
new file mode 100644
index 0000000000..3505eb53ec
--- /dev/null
+++ b/unmaintained/ruby-file-tail/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+_gemname=file-tail
+pkgname=ruby-$_gemname
+pkgver=1.0.12
+pkgrel=1
+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"
+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"