summaryrefslogtreecommitdiff
path: root/libre/ruby-hpricot
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-02 03:26:07 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-02 16:24:13 -0500
commit5412cb613c58e3eb3470bdba67a23855bf3a7191 (patch)
treea2479d5a1edd94831fa4a6bea884bf351e99bbb5 /libre/ruby-hpricot
parent9ba2ac0cd2a6f3e6af1a0f01f50f29a8009e9145 (diff)
downloadabslibre-5412cb613c58e3eb3470bdba67a23855bf3a7191.tar.gz
abslibre-5412cb613c58e3eb3470bdba67a23855bf3a7191.tar.bz2
abslibre-5412cb613c58e3eb3470bdba67a23855bf3a7191.zip
undelete libre/{distcc-nozeroconf,pngcrush,ruby-hpricot}
Diffstat (limited to 'libre/ruby-hpricot')
-rw-r--r--libre/ruby-hpricot/PKGBUILD25
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
+}