diff options
author | root <root@rshg054.dnsready.net> | 2013-09-28 02:33:58 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-09-28 02:33:58 -0700 |
commit | c900355ac24fb238dbd0d8f6253a629561f78bee (patch) | |
tree | 2a8e1791c3b6f664ecab07e8a37e8116ad29eb50 /community/ruby-iconv | |
parent | 9cb59f16908b4c0f3f6901ccf376e1a37ea29c3a (diff) |
Sat Sep 28 02:32:51 PDT 2013
Diffstat (limited to 'community/ruby-iconv')
-rwxr-xr-x | community/ruby-iconv/PKGBUILD | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/community/ruby-iconv/PKGBUILD b/community/ruby-iconv/PKGBUILD index 7fbd5a8e5..3b9315ed6 100755 --- a/community/ruby-iconv/PKGBUILD +++ b/community/ruby-iconv/PKGBUILD @@ -1,32 +1,40 @@ -# $Id: PKGBUILD 97425 2013-09-19 13:00:39Z alucryd $ +# $Id: PKGBUILD 97686 2013-09-27 08:51:25Z alucryd $ # Maintainer: Maxime Gauduin <alucryd@gmail.com> pkgname=ruby-iconv pkgver=1.0.3 -pkgrel=3 +pkgrel=4 pkgdesc="Wrapper library for iconv" arch=('i686' 'x86_64') url="https://github.com/nurse/iconv" license=('BSD') depends=('ruby') -source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem") +source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem") noextract=("${pkgname#*-}-${pkgver}.gem") sha256sums=('94a9b62a56c96226b62b787cd45fdc48c03f4517f1e36e64db113b010fb012da') -build() { - gem install --no-user-install --ignore-dependencies -i . ${pkgname#*-}-${pkgver}.gem +prepare() { + gem install --no-{document,user-install} --ignore-dependencies -i . ${pkgname#*-}-${pkgver}.gem } package() { + cd gems/${pkgname#*-}-${pkgver} + local _rubyver="$(ruby --version | sed 's/.* \(.*\..*\..*\)p.*/\1/')" - install -dm 755 "${pkgdir}"/usr/lib/ruby/{gems/${_rubyver},vendor_ruby/${_rubyver}/$CARCH-linux} - mv gems/${pkgname#*-}-${pkgver}/lib/* "${pkgdir}"/usr/lib/ruby/vendor_ruby/${_rubyver}/ - mv doc specifications "${pkgdir}"/usr/lib/ruby/gems/${_rubyver}/ + + install -dm 755 "${pkgdir}"/usr/lib/ruby/{gems/${_rubyver},vendor_ruby} + mv lib "${pkgdir}"/usr/lib/ruby/vendor_ruby/${_rubyver} + +# Native extension + install -dm 755 "${pkgdir}"/usr/lib/ruby/vendor_ruby/${_rubyver}/$CARCH-linux mv "${pkgdir}"/usr/lib/ruby/vendor_ruby/${_rubyver}/{iconv,$CARCH-linux}/iconv.so +# Gem compatibility + mv ../../specifications "${pkgdir}"/usr/lib/ruby/gems/${_rubyver}/ + # License install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname} - install -m 644 {gems/${pkgname#*-}-${pkgver},"${pkgdir}"/usr/share/licenses/${pkgname}}/BSDL + install -m 644 {,"${pkgdir}"/usr/share/licenses/${pkgname}/}BSDL } # vim: ts=2 sw=2 et: |