mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-30 02:41:17 +02:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# 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"
|