# $Id: PKGBUILD 36733 2009-04-27 02:47:18Z eric $ # Maintainer: Alexander Baldeck # Contributor: Jan de Groot pkgname=xorg-font-utils pkgver=7.4 pkgrel=2 pkgdesc="X.Org font utilities" arch=(arm) url="http://xorg.freedesktop.org/" license=('custom') depends=('libxfont' 'libfontenc' 'xproto') makedepends=('pkgconfig' 'bigreqsproto') replaces=('font-util') provides=('font-util') conflicts=('font-util') install=xorg-font-utils.install source=(${url}/releases/individual/app/bdftopcf-1.0.1.tar.bz2 ${url}/releases/individual/app/fonttosfnt-1.0.4.tar.bz2 ${url}/releases/individual/app/mkfontdir-1.0.4.tar.bz2 ${url}/releases/individual/app/mkfontscale-1.0.6.tar.bz2 ${url}/releases/individual/font/font-util-1.0.1.tar.bz2 http://people.redhat.com/yshao/ttmkfdir2.20021109.tar.bz2 ttmkfdir.patch gcc-4.3.patch) md5sums=('9685fab33d39954ab8a0d22e0969d5a4' '07607b26fce3bdc2b204ff3bc43d3ac3'\ '35394bf3f746a57fba624dba52fdbba3' '0d0752af232054b720febcc1b2fd6c57'\ 'b81535f78fe05732931f02841e5ca37b' '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 || 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 }