summaryrefslogtreecommitdiff
path: root/libre/ruby-hpricot/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-02 03:51:19 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-02 16:24:13 -0500
commit4b967014bc67d3b7d26532cec98cc6aaed196fca (patch)
tree617efd1dd2294774eca695332407ac7c4e7afc75 /libre/ruby-hpricot/PKGBUILD
parentd35b031076e1df8048348bf43fb8b04e5642740f (diff)
downloadabslibre-4b967014bc67d3b7d26532cec98cc6aaed196fca.tar.gz
abslibre-4b967014bc67d3b7d26532cec98cc6aaed196fca.tar.bz2
abslibre-4b967014bc67d3b7d26532cec98cc6aaed196fca.zip
ruby-hpricot: build against ruby 2.1, also use a symlink instady of copy
Diffstat (limited to 'libre/ruby-hpricot/PKGBUILD')
-rw-r--r--libre/ruby-hpricot/PKGBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/libre/ruby-hpricot/PKGBUILD b/libre/ruby-hpricot/PKGBUILD
index ad9aefc36..6a15b2af7 100644
--- a/libre/ruby-hpricot/PKGBUILD
+++ b/libre/ruby-hpricot/PKGBUILD
@@ -1,4 +1,4 @@
-# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
_gemname=hpricot
pkgname=ruby-$_gemname
@@ -7,7 +7,7 @@ pkgdesc="_why's old HTML parser"
url="http://github.com/hpricot/hpricot"
license=('custom:MIT')
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
depends=('ruby')
makedepends=('rubygems')
@@ -20,6 +20,8 @@ package() {
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
+
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -sr "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/COPYING \
+ "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}