From c54c235da9f4322a2ad352fd43c5bc875f1daf2d Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 4 Sep 2014 03:37:40 -0300 Subject: xorg-fonts-{{100,75}dpi,type1}: remove libre suffix and add complex pkgrel --- libre/xorg-fonts-type1/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++ libre/xorg-fonts-type1/xfonts.install | 15 ++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 libre/xorg-fonts-type1/PKGBUILD create mode 100644 libre/xorg-fonts-type1/xfonts.install (limited to 'libre/xorg-fonts-type1') diff --git a/libre/xorg-fonts-type1/PKGBUILD b/libre/xorg-fonts-type1/PKGBUILD new file mode 100644 index 000000000..95766fb20 --- /dev/null +++ b/libre/xorg-fonts-type1/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 216282 2014-07-02 16:41:27Z fyan $ +# Maintainer (Arch): Jan de Groot + +pkgname=xorg-fonts-type1 +pkgver=7.4 +pkgrel=3.parabola1 +pkgdesc="X.org Type1 fonts, without nonfree fonts" +arch=(any) +license=('custom') +url="http://xorg.freedesktop.org/" +depends=(xorg-fonts-encodings xorg-fonts-alias xorg-font-utils fontconfig) +conflicts=('xorg-fonts-type1-libre') +replaces=('xorg-fonts-type1-libre') +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}" + for dir in *; do + if [ -d "${dir}" ]; then + pushd "${dir}" + ./configure --prefix=/usr \ + --with-fontdir=/usr/share/fonts/Type1 + make + popd + fi + done +} + +package() { + cd "${srcdir}" + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + for dir in *; do + if [ -d "${dir}" ]; then + pushd "${dir}" + make DESTDIR="${pkgdir}" install + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.${dir%-*}" + popd + fi + done + rm -f "${pkgdir}"/usr/share/fonts/Type1/fonts.* +} diff --git a/libre/xorg-fonts-type1/xfonts.install b/libre/xorg-fonts-type1/xfonts.install new file mode 100644 index 000000000..51688a1d1 --- /dev/null +++ b/libre/xorg-fonts-type1/xfonts.install @@ -0,0 +1,15 @@ +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 +} -- cgit v1.2.3