summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b903dab6249191f10a504effb1953ac1b9a31f3f (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: Artem Vorotnikov <artem@vorotnikov.me>

_gemname=slop
pkgname=ruby-$_gemname
pkgver=4.1.0
pkgrel=1
pkgdesc='Simple Lightweight Option Parsing'
arch=(any)
url='http://github.com/leejarvis/slop'
license=(MIT)
depends=(ruby)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha512sums=('5d894afcfba7313ecee0f429089a0584a55ce14d4e969f8f5ae8dde0db7653829c453b55f66bc2a6570499c0ff24b94401f95d2af6b65e1eb1eb012ff3036f40')

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"
  install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}