summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a1b94cb79e88757e24cf0fdd296ce0a2ba0c76f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Generated by gem2arch (https://github.com/anatol/gem2arch)
# Maintainer: Grey Christoforo <first name at last name dot net>

_gemname=charlock_holmes
pkgname=ruby-$_gemname
pkgver=0.7.6
pkgrel=1
pkgdesc='Character encoding detection, brought to you by ICU'
arch=(i686 x86_64)
url='https://github.com/brianmario/charlock_holmes'
license=(MIT)
depends=(ruby)
makedepends=(ruby-rdoc)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha1sums=('546b3157f72a80a66627f90053d8e268f29144df')

package() {
  local _gemdir="$(ruby -e'puts Gem.default_dir')"
  gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
}