aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-useragent
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ruby-useragent')
-rw-r--r--testing/ruby-useragent/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-useragent/APKBUILD b/testing/ruby-useragent/APKBUILD
new file mode 100644
index 0000000000..048f77a1af
--- /dev/null
+++ b/testing/ruby-useragent/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Seung Soo Mun <hamletmun@gmail.com>
+# Maintainer:
+_gemname=useragent
+pkgname=ruby-$_gemname
+pkgver=0.10.0
+pkgrel=0
+pkgdesc="HTTP User Agent parser"
+url="http://rubygems.org/gems/$_gemname"
+arch="noarch"
+license="MIT"
+depends="ruby"
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+
+_builddir="$srcdir"/$_realname-$pkgver
+
+build() {
+ return 0
+}
+
+package() {
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
+ mkdir -p "$pkgdir" || return 1
+
+ gem install --local --install-dir "$pkgdir"/$_gemdir \
+ --ignore-dependencies --verbose --no-rdoc --no-ri \
+ "$srcdir"/$_gemname-$pkgver.gem || return 1
+ rm -rf "$pkgdir"/$_gemdir/cache \
+ "$pkgdir"/$_geminstdir/ext \
+ "$pkgdir"/$_geminstdir/.require_paths
+}
+
+md5sums="9a8ea3908e264411d2627f9886a30b18 useragent-0.10.0.gem"
+sha256sums="f6e974ce08e777b9e2e81f48cc7e22762723335bfee15673a90c6589110b381a useragent-0.10.0.gem"
+sha512sums="552d4ea3ffdff2f3c6cdd6e874928052884f42ad31c785630c28ff6f577079661a930e353ecc8ce2c6fbe56cf68335856e466756444ee539a877bba3963a7c04 useragent-0.10.0.gem"