summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 505feb07f2bb0799dfa98349f03f07a7e969eec0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Ralph Amissah <ralph.amissah@gmail.com>
# sisu-gem
# SET pkgver & sha256sums
_pkgname=sisu
_gemname=${_pkgname}
pkgname=("${_pkgname}-gem")
pkgdesc="documents - structuring, publishing in multiple formats & search"
pkgver=7.1.9
pkgrel=1
source=("https://rubygems.org/downloads/sisu-${pkgver}.gem")
sha256sums=('a86e1f0d6227747dca871fedaa0e929e719da2a4ef2704f65a72d3ba97c73a0f')
noextract=("${pkgname}-${pkgver}.gem")
arch=('any')
url="http://sisudoc.org"
license=('GPL3')
depends=('ruby')
makedepends=('ruby')
optdepends=(
  'zip: epub & odf:odt files'
  'unzip: epub & odf:odt files (not required)'
  'tree: report directory structure'
  'imagemagick: image support'
  'graphicsmagick: image support'
  'texlive-core: pdf'
  'texlive-latexextra: pdf'
  'texlive-fontsextra: pdf'
  'texlive-langcjk: pdf Chinese Japanese Korean (large optional dependency, comment out if not needed)'
  'sqlite: search, populate sqlite db'
  'ruby-sqlite3: search, populate sqlite db'
  'postgresql: search, populate postgresql db'
  'ruby-pg: search, populate postresql db'
  'ruby-fcgi: search, sample search form'
  'qrencode: qrcodes based on document metadata'
  )
conflicts=('sisu' 'sisu-git' 'sisu-git-gem')
options=(!emptydirs)
package() {
  msg "Creating arch package from gem ..."
  local _gemdir="$(ruby -e'puts Gem.default_dir')"
  msg "gem name: ${_gemname}-${pkgver}.gem"
  gem install --ignore-dependencies --no-user-install --no-document -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
}