diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-05-30 14:37:28 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-05-30 14:37:28 -0300 |
commit | 475b01fc789b4ee29dab78435c2b6a06d4ed5979 (patch) | |
tree | 426c6af5b0d68c7bf3c743f9cc9fa6f3ce44166e /libre-testing/ruby-hpricot | |
parent | e26f7749abf4e3a21b4087e64ac49a55f71bf596 (diff) | |
parent | 4a875122e99a357ad6337ed290b71a36803e6244 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre-testing/ruby-hpricot')
-rw-r--r-- | libre-testing/ruby-hpricot/PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libre-testing/ruby-hpricot/PKGBUILD b/libre-testing/ruby-hpricot/PKGBUILD new file mode 100644 index 000000000..ad9aefc36 --- /dev/null +++ b/libre-testing/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 +} |