diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-02-02 03:51:19 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-02-02 16:24:13 -0500 |
commit | 4b967014bc67d3b7d26532cec98cc6aaed196fca (patch) | |
tree | 617efd1dd2294774eca695332407ac7c4e7afc75 /libre/ruby-hpricot/PKGBUILD | |
parent | d35b031076e1df8048348bf43fb8b04e5642740f (diff) |
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/PKGBUILD | 10 |
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 } |