Skip to content

Instantly share code, notes, and snippets.

@abashmakov
Created August 8, 2020 22:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save abashmakov/687335e1961d73c28bc1e29364db0d31 to your computer and use it in GitHub Desktop.
# Generated by gem2arch (https://github.com/anatol/gem2arch)
# Maintainer: Grey Christoforo <first name at last name dot net>
_gemname=gollum-lib
pkgname=ruby-$_gemname
pkgver=5.0.5
pkgrel=1
pkgdesc='A simple, Git-powered wiki.'
arch=(any)
url='http://github.com/gollum/gollum-lib'
license=(MIT)
depends=(ruby
ruby-gollum-rugged_adapter
ruby-rouge
ruby-nokogiri
ruby-loofah
ruby-github-markup
ruby-gemojione
'ruby-octicons<9'
'ruby-twitter-text<2')
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha1sums=('21c00e1d37a74d51dbe3a3fee16853e9fa5e5cea')
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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment