From bceaf50054221e7a80cc56de31a80c7d325c206c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 26 Mar 2009 21:00:54 +0000 Subject: x11/font-adobe-utopia-75dpi: new aport --- x11/font-adobe-utopia-75dpi/APKBUILD | 25 ++++++++++++++++++++++ .../font-adobe-utopia-75dpi.post-install | 8 +++++++ .../font-adobe-utopia-75dpi.post-upgrade | 1 + 3 files changed, 34 insertions(+) create mode 100644 x11/font-adobe-utopia-75dpi/APKBUILD create mode 100644 x11/font-adobe-utopia-75dpi/font-adobe-utopia-75dpi.post-install create mode 120000 x11/font-adobe-utopia-75dpi/font-adobe-utopia-75dpi.post-upgrade (limited to 'x11') diff --git a/x11/font-adobe-utopia-75dpi/APKBUILD b/x11/font-adobe-utopia-75dpi/APKBUILD new file mode 100644 index 000000000..48f1df488 --- /dev/null +++ b/x11/font-adobe-utopia-75dpi/APKBUILD @@ -0,0 +1,25 @@ +# Maintainer: Natanael Copa +pkgname=font-adobe-utopia-75dpi +pkgver=1.0.1 +pkgrel=0 +pkgdesc="X.org adobe 75dpi font" +url="http://xorg.freedesktop.org/" +license="custom" +depends="encodings font-alias mkfontscale mkfontdir fontconfig" +makedepends="pkgconfig font-util-dev bdftopcf" +install="$pkgname.post-install $pkgname.post-upgrade" +source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2 + $install" + +build() { + cd "$srcdir"/$pkgname-$pkgver + ./configure --prefix=/usr \ + --with-mapfiles=/usr/share/fonts/util \ + --with-fontdir=/usr/share/fonts/75dpi + make || return 1 + make -j1 DESTDIR="$pkgdir" install || return 1 +} + +md5sums="dd912284e4750023f9682812532fa033 font-adobe-utopia-75dpi-1.0.1.tar.bz2 +a24308692d7112b79a5a188c0b5c2e41 font-adobe-utopia-75dpi.post-install +a24308692d7112b79a5a188c0b5c2e41 font-adobe-utopia-75dpi.post-upgrade" diff --git a/x11/font-adobe-utopia-75dpi/font-adobe-utopia-75dpi.post-install b/x11/font-adobe-utopia-75dpi/font-adobe-utopia-75dpi.post-install new file mode 100644 index 000000000..887dedc80 --- /dev/null +++ b/x11/font-adobe-utopia-75dpi/font-adobe-utopia-75dpi.post-install @@ -0,0 +1,8 @@ +#!/bin/sh + +echo -n "Updating font cache (TODO: implement triggers in apk)... " +fc-cache -f > /dev/null +mkfontscale /usr/share/fonts/75dpi +mkfontdir /usr/share/fonts/75dpi +echo "done." + diff --git a/x11/font-adobe-utopia-75dpi/font-adobe-utopia-75dpi.post-upgrade b/x11/font-adobe-utopia-75dpi/font-adobe-utopia-75dpi.post-upgrade new file mode 120000 index 000000000..418bf2471 --- /dev/null +++ b/x11/font-adobe-utopia-75dpi/font-adobe-utopia-75dpi.post-upgrade @@ -0,0 +1 @@ +font-adobe-utopia-75dpi.post-install \ No newline at end of file -- cgit v1.2.3