PKGBUILDs/community/ruby-hpricot/PKGBUILD
2009-10-09 21:15:33 -05:00

23 lines
703 B
Bash

# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Andrea Scarpino <bash.lnx@gmail.com>
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
}