This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
google-crosextra-{caladea,carlito}-fonts, open-sans-fonts, libgpg-err…
…or, libreoffice, mame, manaplus, nss, quazip, ttembed, xkeyboard-config
- Loading branch information
Phantom X
committed
Jan 30, 2015
1 parent
fa72344
commit a3eef84
Showing
57 changed files
with
2,345 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Thu Jan 29 19:42:43 BRST 2015 | ||
google-crosextra-caladea-fonts-20130214-noarch-1xinc.txz: | ||
First SB. | ||
+--------------------------+ |
17 changes: 17 additions & 0 deletions
17
fonts/google-crosextra-caladea-fonts/fcconf/30-0-google-crosextra-caladea.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> | ||
<fontconfig> | ||
<!-- Microsoft --> | ||
<alias binding="same"> | ||
<family>Cambria</family> | ||
<accept> | ||
<family>Caladea</family> | ||
</accept> | ||
</alias> | ||
<alias binding="same"> | ||
<family>Caladea</family> | ||
<default> | ||
<family>Cambria</family> | ||
</default> | ||
</alias> | ||
</fontconfig> |
17 changes: 17 additions & 0 deletions
17
fonts/google-crosextra-caladea-fonts/fcconf/62-google-crosextra-caladea.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> | ||
<fontconfig> | ||
<alias> | ||
<family>serif</family> | ||
<prefer> | ||
<family>Caladea</family> | ||
</prefer> | ||
</alias> | ||
<alias> | ||
<family>Caladea</family> | ||
<default> | ||
<family>serif</family> | ||
</default> | ||
</alias> | ||
</fontconfig> | ||
|
191 changes: 191 additions & 0 deletions
191
fonts/google-crosextra-caladea-fonts/google-crosextra-caladea-fonts.SlackBuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
#!/bin/bash | ||
#-- google-crosextra-caladea-fonts for Slackware -- | ||
# Build script by Phantom X <megaphantomx at bol.com.br> | ||
# Suggested usage: $ google-crosextra-caladea-fonts.SlackBuild 2>&1 | tee build.log | ||
#-- | ||
# Copyright 2008-2015 Phantom X, Goiania, Brazil. | ||
# Copyright 2006 Martijn Dekker, Groningen, Netherlands. | ||
# All rights reserved. | ||
# | ||
# Redistribution and use of this script, with or without modification, is | ||
# permitted provided that the following conditions are met: | ||
# | ||
# 1. Redistributions of this script must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR `AS IS'' AND ANY EXPRESS OR IMPLIED | ||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
# http://code.google.com/p/chromium/issues/detail?id=168879 | ||
|
||
PACKAGER_ID=${PACKAGER_ID:-$USER} | ||
PACKAGER=${PACKAGER:-$USER@$HOSTNAME} | ||
|
||
# Set to YES to replicate slackbuild and patches | ||
SB_REP=${SB_REP:-YES} | ||
|
||
CWD=$(pwd) | ||
TMP=${TMP:-/tmp} | ||
|
||
PNAME=google-crosextra-caladea | ||
NAME=${PNAME}-fonts | ||
PKG=${PKG:-${TMP}/package-${NAME}} | ||
|
||
VERSION=${VERSION:-20130214} | ||
ARCH=noarch | ||
SLKTARGET=${SLKTARGET:-x86_64} | ||
SLKDTARGET=${SLKDTARGET:-slackware} | ||
BUILD=${BUILD:-1} | ||
NJOBS=${NJOBS:-$(( $(getconf _NPROCESSORS_ONLN) + 1 ))} | ||
DOCDIR=${PKG}/usr/doc/${NAME}-${VERSION} | ||
SBDIR=${PKG}/usr/src/slackbuilds/fonts/${NAME} | ||
PKGDEST=${PKGDEST:-${CWD}} | ||
PKGFORMAT=${PKGFORMAT:-txz} | ||
PKGNAME=${NAME}-${VERSION//-/.}-${ARCH}-${BUILD}${PACKAGER_ID} | ||
|
||
TTFDIR=usr/share/fonts/TTF/${PNAME} | ||
|
||
DATE=$(LC_ALL=C date +%d-%b-%Y) | ||
|
||
SRCDIR=crosextrafonts-${VERSION} | ||
SRCARCHIVE=${SRCDIR}.tar.gz | ||
|
||
DL_PROG=${DL_PROG:-wget} | ||
DL_TO=${DL_TO:-5} | ||
DL_OPTS=${DL_OPTS:-"--timeout=${DL_TO}"} | ||
DL_URL="http://gsdview.appspot.com/chromeos-localmirror/distfiles/${SRCARCHIVE}" | ||
|
||
# if source is not present, download in source rootdir if possible | ||
test -r ${CWD}/${SRCARCHIVE} || ${DL_PROG} ${DL_OPTS} ${DL_URL} || exit 1 | ||
|
||
[ "$1" = "--dlsrc" ] && exit 0 | ||
|
||
if [ ! -d ${TMP} ]; then | ||
mkdir -p ${TMP} | ||
fi | ||
if [ -d ${PKG} ]; then | ||
# Clean up a previous build | ||
rm -rf ${PKG} | ||
fi | ||
mkdir -p ${PKG} | ||
|
||
cd ${TMP} | ||
rm -rf ${SRCDIR} | ||
tar -xvf ${CWD}/${SRCARCHIVE} || exit 1 | ||
cd ${SRCDIR} || exit 1 | ||
|
||
chmod -R u+w,go+r-w,a-s . | ||
|
||
if [ -r ${CWD}/apply-patches.sh ]; then | ||
. ${CWD}/apply-patches.sh | ||
fi | ||
|
||
mkdir -p ${PKG}/${TTFDIR} | ||
install -pm0644 *.ttf ${PKG}/${TTFDIR}/ || exit $? | ||
|
||
touch ${PKG}/${TTFDIR}/fonts.{dir,scale} | ||
|
||
mkdir -p ${PKG}/usr/share/fontconfig/conf.avail | ||
mkdir -p ${PKG}/etc/fonts/conf.d | ||
|
||
for fcconf in \ | ||
30-0-${PNAME} \ | ||
62-${PNAME} | ||
do | ||
fcconf=${fcconf}.conf | ||
install -pm0644 ${CWD}/fcconf/${fcconf} \ | ||
${PKG}/usr/share/fontconfig/conf.avail/${fcconf} || exit 1 | ||
ln -sf ../../../usr/share/fontconfig/conf.avail/${fcconf} \ | ||
${PKG}/etc/fonts/conf.d/${fcconf} || exit 1 | ||
done | ||
|
||
# Add a documentation directory: | ||
mkdir -p ${DOCDIR} | ||
cp -a \ | ||
LICENSE ${CWD}/ChangeLog.SB \ | ||
${DOCDIR}/ | ||
[ -r ChangeLog ] && head -n 1000 ChangeLog > ${DOCDIR}/ChangeLog | ||
find ${DOCDIR}/ -type d -print0 | xargs -0 chmod 0755 | ||
find ${DOCDIR}/ -type f -print0 | xargs -0 chmod 0644 | ||
find ${DOCDIR}/ -type f -size 0 -print0 | xargs -0 rm -f | ||
|
||
mkdir -p ${PKG}/install | ||
cat ${CWD}/slack-desc > ${PKG}/install/slack-desc | ||
cat ${CWD}/slack-required > ${PKG}/install/slack-required | ||
|
||
cat > ${PKG}/install/doinst.sh <<EOF | ||
# Figure out our root directory | ||
ROOTDIR=\$(pwd) | ||
unset CHROOT | ||
if test "\${ROOTDIR}" != "/"; then | ||
CHROOT="chroot \${ROOTDIR} " | ||
ROOTDIR="\${ROOTDIR}/" | ||
fi | ||
# Update the X font indexes: | ||
if [ -x usr/bin/mkfontscale -a -x usr/bin/mkfontdir ]; then | ||
\${CHROOT} /usr/bin/mkfontscale /${TTFDIR#\/} >/dev/null 2>&1 | ||
\${CHROOT} /usr/bin/mkfontdir /${TTFDIR#\/} >/dev/null 2>&1 | ||
fi | ||
if [ -x usr/bin/fc-cache ]; then | ||
\${CHROOT} /usr/bin/fc-cache -f | ||
fi | ||
EOF | ||
|
||
sed -i "s|_PACKAGER|${PACKAGER}|g; s|_BUILD_DATE|${DATE}|g" \ | ||
${PKG}/install/slack-desc | ||
|
||
if [ "${SB_REP}" = "YES" ] ;then | ||
# Replicate slackbuild and patches | ||
mkdir -p ${SBDIR}/{fcconf,patches} | ||
install -pm0644 ${CWD}/slack-desc ${CWD}/slack-required ${CWD}/ChangeLog.SB \ | ||
${CWD}/apply-patches.sh ${SBDIR}/ | ||
install -pm0755 ${CWD}/${NAME}.SlackBuild \ | ||
${SBDIR}/${NAME}.SlackBuild | ||
install -m0644 ${CWD}/fcconf/*.conf \ | ||
${SBDIR}/fcconf/ | ||
install -m0644 ${CWD}/patches/*.* \ | ||
${SBDIR}/patches/ | ||
rmdir ${SBDIR}/{fcconf,patches} | ||
fi | ||
|
||
# Build package: | ||
set +o xtrace # no longer print commands upon execution | ||
set -e | ||
|
||
ROOTCOMMANDS="set -o errexit -o xtrace ; cd ${PKG} ; | ||
/bin/chown --recursive root:root . ;" | ||
|
||
ROOTCOMMANDS="${ROOTCOMMANDS} | ||
/sbin/makepkg --prepend --linkadd y --chown n ${PKGDEST}/${PKGNAME}.${PKGFORMAT} " | ||
|
||
if test ${UID} = 0; then | ||
eval ${ROOTCOMMANDS} | ||
set +o xtrace | ||
elif test "$(type -t fakeroot)" = 'file'; then | ||
echo -e "\e[1mEntering fakeroot environment.\e[0m" | ||
echo ${ROOTCOMMANDS} | fakeroot | ||
else | ||
echo -e "\e[1mPlease enter your root password.\e[0m (Consider installing fakeroot.)" | ||
/bin/su -c "${ROOTCOMMANDS}" | ||
fi | ||
|
||
# Clean up the extra stuff: | ||
if [ "$1" = "--cleanup" ]; then | ||
echo "Cleaning..." | ||
if [ -d ${TMP}/${SRCDIR} ]; then | ||
rm -rf ${TMP}/${SRCDIR} && echo "${TMP}/${SRCDIR} cleanup completed" | ||
fi | ||
if [ -d ${PKG} ]; then | ||
rm -rf ${PKG} && echo "${PKG} cleanup completed" | ||
fi | ||
rmdir ${TMP} && echo "${TMP} cleanup completed" | ||
fi | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
google-crosextra-caladea-fonts|-----handy-ruler------------------------------------------------------| | ||
google-crosextra-caladea-fonts: google-crosextra-caladea-fonts (Serif font) | ||
google-crosextra-caladea-fonts: | ||
google-crosextra-caladea-fonts: Caladea is metric-compatible with Cambria font. This font is a serif | ||
google-crosextra-caladea-fonts: typeface family based on Lato. | ||
google-crosextra-caladea-fonts: | ||
google-crosextra-caladea-fonts: http://code.google.com/p/chromium/issues/detail?id=168879 | ||
google-crosextra-caladea-fonts: | ||
google-crosextra-caladea-fonts: | ||
google-crosextra-caladea-fonts: Packager: _PACKAGER on _BUILD_DATE | ||
google-crosextra-caladea-fonts: | ||
google-crosextra-caladea-fonts: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Thu Jan 29 19:37:10 BRST 2015 | ||
google-crosextra-carlito-fonts-20130920-noarch-1xinc.txz: | ||
First SB. | ||
+--------------------------+ |
17 changes: 17 additions & 0 deletions
17
fonts/google-crosextra-carlito-fonts/fcconf/30-0-google-crosextra-carlito.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> | ||
<fontconfig> | ||
<!-- Microsoft --> | ||
<alias binding="same"> | ||
<family>Calibri</family> | ||
<accept> | ||
<family>Carlito</family> | ||
</accept> | ||
</alias> | ||
<alias binding="same"> | ||
<family>Carlito</family> | ||
<default> | ||
<family>Calibri</family> | ||
</default> | ||
</alias> | ||
</fontconfig> |
17 changes: 17 additions & 0 deletions
17
fonts/google-crosextra-carlito-fonts/fcconf/62-google-crosextra-carlito.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> | ||
<fontconfig> | ||
<alias> | ||
<family>sans-serif</family> | ||
<prefer> | ||
<family>Carlito</family> | ||
</prefer> | ||
</alias> | ||
<alias> | ||
<family>Carlito</family> | ||
<default> | ||
<family>sans-serif</family> | ||
</default> | ||
</alias> | ||
</fontconfig> | ||
|
Oops, something went wrong.