system/ttf-open-sans: Updated for version 20210927.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Edinaldo P. Silva 2023-02-06 18:44:55 +00:00 committed by Willy Sudiarto Raharjo
parent db2ecb04f2
commit 8e66b59a30
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
6 changed files with 12 additions and 107 deletions

View File

@ -1,61 +0,0 @@
fonts-open-sans
---------------
The upstream website (http://www.opensans.com) does not publish
any version information, and it is unclear if and how the font
will ever be updated.
The font is distributed in the form of a two zip files, open-sans.zip and
open-sans-condensed.zip. These need to be repackaged to comply
with debian source package standards.
To find out if an update was released, you should download and
unpack the fonts manually, then use otfdump to find out if they
have a new version.
Download the current font packages first:
$ wget http://www.opensans.com/download/open-sans.zip http://www.opensans.com/download/open-sans-condensed.zip
Unpack them into the source repository:
$ unzip -o open-sans.zip
$ unzip -o open-sans-condensed.zip
Test if any of the files are tagged with a new version:
$ for i in *.ttf; do echo $i; otfdump $i | grep '(nameID 5 "Version' ; done
This should print something like:
OpenSans-CondBold.ttf
(nameID 5 "Version 1.11")
for each of the fonts. Note that they may not all have the same version.
If any of the versions differ from the current package version, or if
$ git status
shows that a file has changed, it is recommended to prepare a new release.
To accomplish this, debian/rules includes a script that does most of
the work for you. Update the changelog first:
$ dch -v <NEW_VERSION>-<PATCHLEVEL>
Replace <NEW_VERSION> with the new upstream version, as determined above,
or increment <PATCHLEVEL> if only some fonts have changed and the highest
font version is still the same.
Add a suitable changelog line. For example: New upstream release
Then save and run the tarball script (it uses wget and unzip):
$ debian/rules get-orig-source
This should produce a new ../fonts-open-sans_<version>.tar.xz file.
Commit the updated TTFs and Debian changelog, then release the new package.

View File

@ -1,5 +0,0 @@
fonts-open-sans (1.11-1) unstable; urgency=medium
* Initial release. (Closes: #754785)
-- Gregor Riepl <onitake@gmail.com> Tue, 18 Apr 2017 19:02:54 +0200

View File

@ -1,29 +0,0 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Open Sans
Source: http://www.opensans.com/
Files: *
Copyright:
Digitized data copyright (c) 2010-2011, Google Corporation.
License: Apache-2.0
Files: debian/*
Copyright:
Copyright (c) 2017, Gregor Riepl <onitake@gmail.com>
License: Apache-2.0
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian systems, the complete text of the Apache License Version 2.0
can be found in `/usr/share/common-licenses/Apache-2.0'.

View File

@ -12,7 +12,7 @@ ttf-open-sans: Open Sans is a clean and modern sans-serif typeface designed by S
ttf-open-sans: Matteson and commissioned by Google. It is especially designed for ttf-open-sans: Matteson and commissioned by Google. It is especially designed for
ttf-open-sans: legibility across print, web, and mobile interfaces. ttf-open-sans: legibility across print, web, and mobile interfaces.
ttf-open-sans: ttf-open-sans:
ttf-open-sans: Home page: https://www.opensans.com/ ttf-open-sans: Home page: https://github.com/googlefonts/opensans/
ttf-open-sans: ttf-open-sans:
ttf-open-sans: ttf-open-sans:
ttf-open-sans: ttf-open-sans:

View File

@ -2,7 +2,7 @@
# #
# Slackware build script for ttf-open-sans. # Slackware build script for ttf-open-sans.
# #
# Copyright 2015-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil. # Copyright 2015-2023 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ttf-open-sans PRGNAM=ttf-open-sans
VERSION=${VERSION:-1.11} VERSION=${VERSION:-20210927}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -44,7 +44,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
SRCNAM="fonts-open-sans" SRCNAM="opensans"
SRCVER="27d060e1aad6886daeda67629ee28189f795f534"
set -e set -e
@ -52,8 +53,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/${SRCNAM}_${VERSION}.orig.tar.xz unzip $CWD/${SRCVER}.zip
mv ${SRCNAM}-${VERSION} $PRGNAM-$VERSION mv ${SRCNAM}-${SRCVER} $PRGNAM-$VERSION
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
@ -66,11 +67,10 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/share/fonts/TTF/ mkdir -p $PKG/usr/share/fonts/TTF/
install -m644 OpenSans-*.ttf $PKG/usr/share/fonts/TTF/ install -m644 fonts/ttf/*.ttf $PKG/usr/share/fonts/TTF/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
install -m644 Apache\ License.txt $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE cp -a CONTRIBUTORS.md FONTLOG.txt OFL.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION/
install -m644 $CWD/{changelog,copyright,README.Source} $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View File

@ -1,8 +1,8 @@
PRGNAM="ttf-open-sans" PRGNAM="ttf-open-sans"
VERSION="1.11" VERSION="20210927"
HOMEPAGE="https://www.opensans.com/" HOMEPAGE="https://www.opensans.com/"
DOWNLOAD="http://deb.debian.org/debian/pool/main/f/fonts-open-sans/fonts-open-sans_1.11.orig.tar.xz" DOWNLOAD="https://github.com/googlefonts/opensans/archive/27d060e1aad6886daeda67629ee28189f795f534.zip"
MD5SUM="95ffb3776bf8a9e8b2ebd7a44c4d7869" MD5SUM="c780a4557a14c7786b147ff111a973aa"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""