summaryrefslogtreecommitdiffstats
path: root/abs/core/xorg-font-utils/PKGBUILD
blob: 029721472536bb2cf1ec279f8985a3b9ffbf33b8 (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
50
51
52
53
54
55
56
57
58
# $Id: PKGBUILD 57485 2009-10-31 18:25:03Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-font-utils
pkgver=7.5
pkgrel=2
pkgdesc="X.Org font utilities"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('gcc-libs' 'sh' 'libxfont>=1.4.1' 'libfontenc>=1.0.5' 'xproto>=7.0.15')
makedepends=('pkgconfig' 'bigreqsproto>=1.1.0')
replaces=('font-util')
provides=('font-util')
conflicts=('font-util')
install=xorg-font-utils.install
source=(${url}/releases/individual/app/bdftopcf-1.0.2.tar.bz2
        ${url}/releases/individual/app/fonttosfnt-1.0.4.tar.bz2
        ${url}/releases/individual/app/mkfontdir-1.0.5.tar.bz2
        ${url}/releases/individual/app/mkfontscale-1.0.7.tar.bz2
        ${url}/releases/individual/font/font-util-1.1.1.tar.bz2
        http://people.redhat.com/yshao/ttmkfdir2.20021109.tar.bz2
        ttmkfdir.patch
        gcc-4.3.patch)
md5sums=('148f20d28caaa69bbe7dcca7c2674fb6'
         '07607b26fce3bdc2b204ff3bc43d3ac3'
         '9365ac66d19186eaf030482d312fca06'
         '96ca346f185c0ab48e42bf5bb0375da5'
         '5c735ae6916b65186f3c876d76c27ce3'
         '79e0401393c9728865aa73bb2bd68dd4'
         '099278628ad63631e872bc5590bade74'
         '92ef5f77a467cc188f8dec87b0fdb664')

build() {
  cd "${srcdir}"

  for i in *; do
    if [ -d "${i}" ]; then
      pushd "${i}"
      if [ "${i}" = "ttmkfdir2" ]; then
        patch -Np0 -i "${srcdir}/ttmkfdir.patch" || return 1
        patch -Np1 -i "${srcdir}/gcc-4.3.patch" || return 1
        make || return 1
        install -m755 -d "${pkgdir}/usr/bin"
        install -m755 ttmkfdir "${pkgdir}/usr/bin/" || return 1
        install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
        echo "Unknown license" > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.ttmkfdir2" || return 1
	    else
        ./configure --prefix=/usr --mandir=/usr/share/man \
            --with-mapdir=/usr/share/fonts/util --with-fontrootdir=/usr/share/fonts || return 1
        make || return 1
        make DESTDIR="${pkgdir}" install || return 1
        install -D -m644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.${i%-*} || return 1
      fi
      popd
    fi
  done
}