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

_gemname_='systemu'
pkgname="ruby-${_gemname_}"
pkgver='2.6.5'
pkgrel=1
pkgdesc='Universal capture of stdout and stderr and handling of child process pid for windows, *nix, etc.'
arch=('any')
url='https://github.com/ahoward/systemu'
license=('Ruby')
depends=('ruby')
options=(!emptydirs)
source=("https://rubygems.org/downloads/${_gemname_}-${pkgver}.gem")
noextract=("${_gemname_}-${pkgver}.gem")
sha256sums=('01f7d014b1453b28e5781e15c4d7d63fc9221c29b174b7aae5253207a75ab33e')

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