diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-01-31 00:00:36 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-01-31 00:00:36 -0300 |
commit | 49c8d29b52ebff19d7106c32145f98051cd3131a (patch) | |
tree | 3f881db2da9dc8588f18ef6a17c4d9be7b232174 /libre/xorg-fonts-type1-libre | |
parent | 5e1bf6d96c6812fa9f96b0f7a61ed4268e82aee2 (diff) |
xorg-fonts-100dpi-libre-1.0.2-1
Diffstat (limited to 'libre/xorg-fonts-type1-libre')
-rw-r--r-- | libre/xorg-fonts-type1-libre/PKGBUILD | 36 | ||||
-rw-r--r-- | libre/xorg-fonts-type1-libre/xfonts.install | 20 |
2 files changed, 56 insertions, 0 deletions
diff --git a/libre/xorg-fonts-type1-libre/PKGBUILD b/libre/xorg-fonts-type1-libre/PKGBUILD new file mode 100644 index 000000000..9389c33fc --- /dev/null +++ b/libre/xorg-fonts-type1-libre/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 71695 2010-03-08 13:31:38Z jgc $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=xorg-fonts-type1-libre +pkgver=7.4 +pkgrel=1 +pkgdesc="X.org Type1 fonts" +arch=(any) +license=('custom') +url="http://xorg.freedesktop.org/" +depends=(xorg-fonts-encodings xorg-fonts-alias xorg-font-utils fontconfig) +provides=("xorg-fonts-type1=${pkgver}") +conflicts=('xorg-fonts-type1') +replaces=('xorg-fonts-type1') +install=xfonts.install +source=(${url}/releases/individual/font/font-bitstream-type1-1.0.2.tar.bz2 + ${url}/releases/individual/font/font-xfree86-type1-1.0.3.tar.bz2) +md5sums=('27c55f6a938e7153c59fb551b2f491f9' + 'df934bfc0339322cee73ee3c5460a648') + +build() { + cd "${srcdir}" + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + for dir in *; do + if [ -d "${dir}" ]; then + pushd "${dir}" + ./configure --prefix=/usr \ + --with-fontdir=/usr/share/fonts/Type1 || return 1 + make || return 1 + make DESTDIR="${pkgdir}" install || return 1 + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.${dir%-*}" || return 1 + popd + fi + done + rm -f "${pkgdir}"/usr/share/fonts/Type1/fonts.* +} diff --git a/libre/xorg-fonts-type1-libre/xfonts.install b/libre/xorg-fonts-type1-libre/xfonts.install new file mode 100644 index 000000000..3eb0455c9 --- /dev/null +++ b/libre/xorg-fonts-type1-libre/xfonts.install @@ -0,0 +1,20 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -f > /dev/null + mkfontscale /usr/share/fonts/Type1 + mkfontdir /usr/share/fonts/Type1 + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + +op=$1 +shift + +$op $* |