blob: 6d5b0c9b89e02888c864390f19c2151b161f42ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# $Id: PKGBUILD 104890 2014-01-28 03:34:20Z td123 $
# Maintainer: Maxime Gauduin <alucryd@gmail.com>
pkgname=ruby-iconv
pkgver=1.0.4
pkgrel=2
pkgdesc='Wrapper library for iconv'
arch=('i686' 'x86_64')
url='https://github.com/nurse/iconv'
license=('BSD')
depends=('ruby')
options=('!emptydirs')
source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
noextract=("${pkgname#*-}-${pkgver}.gem")
sha256sums=('5bd4e387a2e8070baf3ebf8d91f545200db25c08686f82cde66f118d9f914f9b')
package() {
local _gemdir="$(ruby -e'puts Gem.default_dir')"
gem install --ignore-dependencies --no-user-install -N -i "${pkgdir}"/${_gemdir} ${pkgname#*-}-${pkgver}.gem
find "${pkgdir}" -type f -name *.gem -delete
install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname}
ln -s ${_gemdir}/gems/${pkgname#*-}-${pkgver}/BSDL "${pkgdir}"/usr/share/licenses/${pkgname}/
}
# vim: ts=2 sw=2 et:
|