From 4b967014bc67d3b7d26532cec98cc6aaed196fca Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 2 Feb 2014 03:51:19 -0500 Subject: ruby-hpricot: build against ruby 2.1, also use a symlink instady of copy --- libre/ruby-hpricot/PKGBUILD | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libre/ruby-hpricot') 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 _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 } -- cgit v1.2.3-54-g00ecf