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

_gemname_='daemons'
pkgname="ruby-${_gemname_}"
pkgver='1.2.3'
pkgrel=1
pkgdesc='A toolkit to create and control daemons in different ways'
arch=('any')
url='https://github.com/thuehlinger/daemons'
license=('MIT')
depends=('ruby')
options=(!emptydirs)
source=("https://rubygems.org/downloads/${_gemname_}-${pkgver}.gem")
sha256sums=('0fbf1f7ef654e98fac324b43ab690576fbe8b66941693b473f4f27ef334c032d')

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