summaryrefslogtreecommitdiff
path: root/libre/ruby-hpricot/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-08 20:44:07 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-08 20:44:07 -0300
commit4ec145ccfc042a78b953357d5fb5f86803463192 (patch)
treecc0d010ee1488edec38390eadc25ad5c3491e3e1 /libre/ruby-hpricot/PKGBUILD
parentf136d6e19bc1c81449405edc1a0de04887d4b5a9 (diff)
parent9af1e9d623036a1f098f0b6e6c4f22b175c5f23b (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/ruby-hpricot/PKGBUILD')
-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
+}