aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-useragent/APKBUILD
blob: 048f77a1afec31d6e5d889ba7b2648e1b3d62f10 (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
# 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"