summaryrefslogtreecommitdiffstats
path: root/x11/font-bitstream-75dpi
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-03-26 21:13:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-03-26 21:13:57 +0000
commitba3bbdb60846d61ed74afc6666cf3913a44549e0 (patch)
tree09e7760b504d3984781d8afefd8972d23b62e813 /x11/font-bitstream-75dpi
parent6dd7082b13fe961f7f891a7e282cdcd4c0977bc9 (diff)
downloadaports-ba3bbdb60846d61ed74afc6666cf3913a44549e0.tar.bz2
aports-ba3bbdb60846d61ed74afc6666cf3913a44549e0.tar.xz
x11/font-bitstream-75dpi: new aport
Diffstat (limited to 'x11/font-bitstream-75dpi')
-rw-r--r--x11/font-bitstream-75dpi/APKBUILD25
-rw-r--r--x11/font-bitstream-75dpi/font-bitstream-75dpi.post-install8
l---------x11/font-bitstream-75dpi/font-bitstream-75dpi.post-upgrade1
3 files changed, 34 insertions, 0 deletions
diff --git a/x11/font-bitstream-75dpi/APKBUILD b/x11/font-bitstream-75dpi/APKBUILD
new file mode 100644
index 00000000..b89f2fdb
--- /dev/null
+++ b/x11/font-bitstream-75dpi/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bitstream-75dpi
+pkgver=1.0.0
+pkgrel=0
+pkgdesc="X.Org Bitstream bitmap fonts"
+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="beb476657d50d07d17eef7c325a5ed08 font-bitstream-75dpi-1.0.0.tar.bz2
+a24308692d7112b79a5a188c0b5c2e41 font-bitstream-75dpi.post-install
+a24308692d7112b79a5a188c0b5c2e41 font-bitstream-75dpi.post-upgrade"
diff --git a/x11/font-bitstream-75dpi/font-bitstream-75dpi.post-install b/x11/font-bitstream-75dpi/font-bitstream-75dpi.post-install
new file mode 100644
index 00000000..887dedc8
--- /dev/null
+++ b/x11/font-bitstream-75dpi/font-bitstream-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-bitstream-75dpi/font-bitstream-75dpi.post-upgrade b/x11/font-bitstream-75dpi/font-bitstream-75dpi.post-upgrade
new file mode 120000
index 00000000..07ad9e00
--- /dev/null
+++ b/x11/font-bitstream-75dpi/font-bitstream-75dpi.post-upgrade
@@ -0,0 +1 @@
+font-bitstream-75dpi.post-install \ No newline at end of file