Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
google-crosextra-{caladea,carlito}-fonts, open-sans-fonts, libgpg-err…
Browse files Browse the repository at this point in the history
…or, libreoffice, mame, manaplus, nss, quazip, ttembed, xkeyboard-config
  • Loading branch information
Phantom X committed Jan 30, 2015
1 parent fa72344 commit a3eef84
Show file tree
Hide file tree
Showing 57 changed files with 2,345 additions and 87 deletions.
39 changes: 39 additions & 0 deletions ChangeLog.All
@@ -1,3 +1,42 @@
Fri Jan 30 00:00:58 BRST 2015
mame-data-0.158-noarch-1xinc.txz
+--------------------------+
Thu Jan 29 20:38:50 BRST 2015
mame-0.158-x86_64-1xinc.txz
+--------------------------+
Thu Jan 29 20:21:42 BRST 2015
infozip-3.0-x86_64-6xinc.txz
+--------------------------+
Thu Jan 29 20:10:57 BRST 2015
nss-3.17.4-x86_64-1xinc.txz
+--------------------------+
Thu Jan 29 20:07:17 BRST 2015
libgpg-error-1.18-x86_64-1xinc.txz
+--------------------------+
Thu Jan 29 19:56:18 BRST 2015
libreoffice-langpack-pt_BR-4.4.0-x86_64-1xinc.txz
+--------------------------+
Thu Jan 29 19:52:54 BRST 2015
libreoffice-4.4.0-x86_64-1xinc.txz
+--------------------------+
Thu Jan 29 19:42:43 BRST 2015
google-crosextra-caladea-fonts-20130214-noarch-1xinc.txz
+--------------------------+
Thu Jan 29 19:37:10 BRST 2015
google-crosextra-carlito-fonts-20130920-noarch-1xinc.txz
+--------------------------+
Thu Jan 29 19:23:44 BRST 2015
open-sans-fonts-1.10-noarch-1xinc.txz
+--------------------------+
Thu Jan 29 19:09:53 BRST 2015
ttembed-1.1-x86_64-1xinc.txz
+--------------------------+
Thu Jan 29 18:48:40 BRST 2015
xkeyboard-config-2.14-x86_64-1xinc.txz
+--------------------------+
Wed Jan 28 23:39:35 BRST 2015
manaplus-1.5.1.17-x86_64-1xinc.txz
+--------------------------+
Wed Jan 28 21:29:24 BRST 2015
pepperflash-plugin-40.0.2214.93-x86_64-1xinc.txz
+--------------------------+
Expand Down
4 changes: 4 additions & 0 deletions fonts/google-crosextra-caladea-fonts/ChangeLog.SB
@@ -0,0 +1,4 @@
Thu Jan 29 19:42:43 BRST 2015
google-crosextra-caladea-fonts-20130214-noarch-1xinc.txz:
First SB.
+--------------------------+
@@ -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>
@@ -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>

@@ -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
12 changes: 12 additions & 0 deletions fonts/google-crosextra-caladea-fonts/slack-desc
@@ -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:
1 change: 1 addition & 0 deletions fonts/google-crosextra-caladea-fonts/slack-required
@@ -0,0 +1 @@

4 changes: 4 additions & 0 deletions fonts/google-crosextra-carlito-fonts/ChangeLog.SB
@@ -0,0 +1,4 @@
Thu Jan 29 19:37:10 BRST 2015
google-crosextra-carlito-fonts-20130920-noarch-1xinc.txz:
First SB.
+--------------------------+
@@ -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>
@@ -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>

0 comments on commit a3eef84

Please sign in to comment.