summaryrefslogtreecommitdiff
path: root/libre-testing/ruby-hpricot
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-28 21:00:26 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-28 21:00:26 -0600
commit6b2c8aa7b11e2d30b8ed5353b7f135f3fdd94c2f (patch)
treec1bc2205c5c201ffa5bf6022714ae8745109fff2 /libre-testing/ruby-hpricot
parent378ad0b28f2408c4fe5d2799c289fb7ba1c5e7da (diff)
downloadabslibre-6b2c8aa7b11e2d30b8ed5353b7f135f3fdd94c2f.tar.gz
abslibre-6b2c8aa7b11e2d30b8ed5353b7f135f3fdd94c2f.tar.bz2
abslibre-6b2c8aa7b11e2d30b8ed5353b7f135f3fdd94c2f.zip
add sh-roundup and its deps to libre-testing
Diffstat (limited to 'libre-testing/ruby-hpricot')
-rw-r--r--libre-testing/ruby-hpricot/PKGBUILD25
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
+}