aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-rbpdf-font/APKBUILD
blob: 0699a07b1ee0756a650355df144c315322f833fe (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
43
44
45
46
47
48
49
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ruby-rbpdf-font
_gemname=rbpdf-font
pkgver=1.19.0
pkgrel=0
pkgdesc="RBPDF font files"
url="https://github.com/naitoh/rbpdf"
arch="noarch"
license="GPL"
depends="ruby ttf2ufm"
depends_dev=""
makedepends="$depends_dev ruby-dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"

prepare() {
        local i
        cd "$_builddir"
        for i in $source; do
                case $i in
                *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
                esac
        done
}

build() {
	return 0
}

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
}
md5sums="547e75d0a21e02e68c85484456086743  rbpdf-font-1.19.0.gem"
sha256sums="2304ff2605dd7bce2334aacee8526a9c865bb4c28e9ec8338a60f5d62017e89b  rbpdf-font-1.19.0.gem"
sha512sums="215a2c99f90ba76a4b1da93a59787557bd326fe8a3e41bfe31bd8c9d7e9b763667f70e781b3bc47b2ae2c2d463836d034315bf2583cc8a6da48cbcde461322ec  rbpdf-font-1.19.0.gem"