summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ad4a3743b3f6bdf26d707ee4f6808ab7faf19708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Generated by gem2arch (https://github.com/anatol/gem2arch)
# Maintainer: Artem Vorotnikov <artem@vorotnikov.me>

_gemname=minitar
pkgname=ruby-$_gemname
pkgver=0.5.4
pkgrel=1
pkgdesc='Provides POSIX tarchive management from Ruby programs.'
arch=(any)
url='http://www.github.com/atoulme/minitar'
license=()
depends=(ruby)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha512sums=('e629e48b12f2dac1229ee1fd1f6fa5b5b7707d7a0298f90778767b1456b78f26fadb37e90e44bba2fd60a2541544f47cb430d19c87abc1a87c3be6843fbcb5aa')

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"
}