Sisyphus repository
Last update: 21 february 2020 | SRPMs: 17500 | Visits: 17455821
en ru br
ALT Linux repos
S:0.2-alt1

Group :: System/Configuration/Other
RPM: installer-feature-kdesktop-fontconfig

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

pax_global_header00006660000000000000000000000064121417221550014512gustar00rootroot0000000000000052 comment=8ef02ec5f9264da5896a2929b0d46e6188d1b00f
installer-feature-kdesktop-fontconfig-0.2/000075500000000000000000000000001214172215500207535ustar00rootroot00000000000000installer-feature-kdesktop-fontconfig-0.2/.gear-rules000064400000000000000000000000071214172215500230170ustar00rootroot00000000000000tar: .
installer-feature-kdesktop-fontconfig-0.2/33-kdesktop-fontconfig.sh000075500000000000000000000017671214172215500255260ustar00rootroot00000000000000#!/bin/sh

. install2-sh-functions

DEST_DIR="$destdir"
CONFD="/etc/fonts/conf.d"
AVAILD="/etc/fonts/conf.avail"

turn_config_on()
{
CONFNAME="$1"
while [ -n "$CONFNAME" ]; do
EXISTS=`ls -1 ${DEST_DIR}${CONFD}/??-${CONFNAME}.conf 2>/dev/null`
if [ -z "$EXISTS" ]; then
AVAIL=`ls -1 ${DEST_DIR}${AVAILD}/??-${CONFNAME}.conf 2>/dev/null`
if [ -n "$AVAIL" ]; then
CONF_ADD=$(basename `ls -1 ${DEST_DIR}${AVAILD}/??-${CONFNAME}.conf 2>/dev/null | head -n 1`)
ln -s "${AVAILD}/$CONF_ADD" "${DEST_DIR}${CONFD}/$CONF_ADD" ||:
fi
fi
shift
CONFNAME="$1"
done
}

turn_config_off()
{
CONFNAME="$1"
while [ -n "$CONFNAME" ]; do
EXISTS=`ls -1 ${DEST_DIR}${CONFD}/??-${CONFNAME}.conf 2>/dev/null`
if [ -n "$EXISTS" ]; then
for CONF_REMOVE in $EXISTS; do
rm -f $CONF_REMOVE ||:
done
fi
shift
CONFNAME="$1"
done
}

turn_config_off no-antialias lcdfilter-none unhinted no-sub-pixel autohint
turn_config_on antialias lcdfilter-default hinting style-full sub-pixel-rgb
installer-feature-kdesktop-fontconfig-0.2/installer-feature-kdesktop-fontconfig.spec000064400000000000000000000012071214172215500312310ustar00rootroot00000000000000Name: installer-feature-kdesktop-fontconfig
Version: 0.2
Release: alt1

Summary: Setup fonts default settings
License: GPL
Group: System/Configuration/Other
Url: http://www.altlinux.org/Installer/beans
BuildArch: noarch
Source: %name-%version.tar

%description
Setup fonts default settings

%prep
%setup

%build

%install
%define hookdir %_datadir/install2/postinstall.d
mkdir -p %buildroot%hookdir
install -pm755 *.sh %buildroot%hookdir/

%files
%hookdir/*

%changelog
* Mon May 06 2013 Sergey V Turchin <zerg@altlinux.org> 0.2-alt1
- disable autohint by default

* Wed Mar 16 2011 Sergey V Turchin <zerg@altlinux.org> 0.1-alt1
- initial release
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin