diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-05 20:55:26 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-05 20:55:26 -0600 |
commit | 84531aa9eb51c6fff1bc47aee6a25609bbf69126 (patch) | |
tree | a77939f0c04c3f002862dc0bec468b764594ce9e /libre/ruby-hpricot | |
parent | c4062b116fa9b14497aa00fa15e3579c44565e61 (diff) |
move libretools and depends from [libre-testing] to [libre]
Diffstat (limited to 'libre/ruby-hpricot')
-rw-r--r-- | libre/ruby-hpricot/PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libre/ruby-hpricot/PKGBUILD b/libre/ruby-hpricot/PKGBUILD new file mode 100644 index 000000000..ad9aefc36 --- /dev/null +++ b/libre/ruby-hpricot/PKGBUILD @@ -0,0 +1,25 @@ +# 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=1 +arch=('i686' 'x86_64') +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 -Dm644 "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/COPYING \ + "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} |