summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}