summaryrefslogtreecommitdiffstats
path: root/abs/core/xorg-fonts-100dpi
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/xorg-fonts-100dpi')
-rw-r--r--abs/core/xorg-fonts-100dpi/PKGBUILD35
-rw-r--r--abs/core/xorg-fonts-100dpi/xfonts.install20
2 files changed, 55 insertions, 0 deletions
diff --git a/abs/core/xorg-fonts-100dpi/PKGBUILD b/abs/core/xorg-fonts-100dpi/PKGBUILD
new file mode 100644
index 0000000..1c3cb5f
--- /dev/null
+++ b/abs/core/xorg-fonts-100dpi/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: Alexander Baldeck <alexander@archlinux.org>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+pkgname=xorg-fonts-100dpi
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="X.org 100dpi fonts"
+arch=(i686 x86_64)
+url="http://xorg.freedesktop.org/"
+depends=('xorg-fonts-encodings' 'xorg-fonts-alias' 'xorg-font-utils' 'fontconfig')
+groups=('xorg')
+install=xfonts.install
+source=(${url}/releases/individual/font/font-adobe-100dpi-1.0.0.tar.bz2
+ ${url}/releases/individual/font/font-adobe-utopia-100dpi-1.0.1.tar.bz2
+ ${url}/releases/individual/font/font-bh-100dpi-1.0.0.tar.bz2
+ ${url}/releases/individual/font/font-bh-lucidatypewriter-100dpi-1.0.0.tar.bz2
+ ${url}/releases/individual/font/font-bitstream-100dpi-1.0.0.tar.bz2)
+md5sums=('443acfe70e26716282f9068730fe92c4' '5d28a30efef966f8dbbaff9a6619f01a'\
+ 'e5592de74a5c04e3a2608800dd079197' 'c44d3f730564da465993e9292a33c235'\
+ '173352ddec3d26e2b91df1edcf1ae85b')
+
+build() {
+ cd ${startdir}/src
+ for dir in font-*-100dpi-1.0.0 font-*-100dpi-1.0.1; do
+ pushd ${dir}
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/100dpi
+ make || return 1
+ make DESTDIR=${startdir}/pkg install || return 1
+ popd
+ done
+ rm -f ${startdir}/pkg/usr/share/fonts/100dpi/fonts.*
+}
+
diff --git a/abs/core/xorg-fonts-100dpi/xfonts.install b/abs/core/xorg-fonts-100dpi/xfonts.install
new file mode 100644
index 0000000..9400b64
--- /dev/null
+++ b/abs/core/xorg-fonts-100dpi/xfonts.install
@@ -0,0 +1,20 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/100dpi
+ mkfontdir /usr/share/fonts/100dpi
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+
+op=$1
+shift
+
+$op $*