# Maintainer: Stefan Husmann # Contributor: Andrea Scarpino pkgname=ruby-hpricot pkgver=0.8 pkgrel=5 pkgdesc="A fast and liberal HTML parser for Ruby." arch=('i686' 'x86_64') url="http://code.whytheluckystiff.net/hpricot" license=('custom') depends=('ruby') makedepends=('rubygems') source=(http://gems.rubyforge.org/gems/hpricot-$pkgver.gem) md5sums=('43b2a91da1dfc53105d907dfe382eda2') build() { cd $srcdir/ gem install -i $pkgdir/usr/lib/ruby/gems/1.8 \ hpricot-$pkgver.gem || return 1 install -d $pkgdir/usr/share/licenses/$pkgname || return 1 bsdtar x -C $pkgdir/usr/share/licenses/$pkgname \ -f data.tar.gz COPYING || return 1 }