# Contributor: Carlo Landmeter # Maintainer: setvar pkgname = 'ruby-rbpdf-font' setvar _gemname = 'rbpdf-font' setvar pkgver = '1.19.0' setvar pkgrel = '0' setvar pkgdesc = ""RBPDF font files"" setvar url = ""https://github.com/naitoh/rbpdf"" setvar arch = ""noarch"" setvar license = ""GPL"" setvar depends = ""ruby ttf2ufm"" setvar depends_dev = """" setvar makedepends = ""$depends_dev ruby-dev"" setvar install = """" setvar subpackages = """" setvar source = ""http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"" proc prepare { local i cd $_builddir for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { return 0 } proc package { local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" local _geminstdir=$_gemdir/gems/$_gemname-$pkgver mkdir -p $pkgdir || return 1 gem install --local --install-dir "$pkgdir"/$_gemdir \ --ignore-dependencies --verbose --no-rdoc --no-ri \ "$srcdir"/$_gemname-$pkgver.gem || return 1 rm -rf "$pkgdir"/$_gemdir/cache \ "$pkgdir"/$_geminstdir/ext \ "$pkgdir"/$_geminstdir/.require_paths # do not use the included ttf2ufm but use system one. ln -sf /usr/bin/ttf2ufm \ $pkgdir/$_geminstdir/lib/fonts/ttf2ufm/ttf2ufm || return 1 } setvar md5sums = ""547e75d0a21e02e68c85484456086743 rbpdf-font-1.19.0.gem"" setvar sha256sums = ""2304ff2605dd7bce2334aacee8526a9c865bb4c28e9ec8338a60f5d62017e89b rbpdf-font-1.19.0.gem"" setvar sha512sums = ""215a2c99f90ba76a4b1da93a59787557bd326fe8a3e41bfe31bd8c9d7e9b763667f70e781b3bc47b2ae2c2d463836d034315bf2583cc8a6da48cbcde461322ec rbpdf-font-1.19.0.gem""