blob: c76466aaffa387d2d6aa4d370c0c711f5d2cd2bc (
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
|
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
_gemname=hpricot
pkgname=ruby-$_gemname
pkgver=0.8.6
pkgdesc="_why's old HTML parser"
url="http://github.com/hpricot/hpricot"
license=('custom:MIT')
pkgrel=2
arch=('i686' 'x86_64' 'mips64el')
depends=('ruby')
makedepends=('rubygems')
source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
noextract=(${_gemname}-${pkgver}.gem)
md5sums=('b0f1f02448037f4f6243c33d5f818fa4')
package() {
cd "${srcdir}"
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" \
"$_gemname-$pkgver.gem"
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -sr "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/COPYING \
"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
|