diff options
author | CCHsu <a12321aabb@gmail.com> | 2014-12-24 15:15:50 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-12-24 15:15:50 +0700 |
commit | c18f380c08c5a0a2c91d5ff3d22341a64b1db6e0 (patch) | |
tree | 3899d3de4aa8b53558b05ba68b97f0fb8664a04a /system/adobe-source-han-sans-fonts/adobe-source-han-sans-fonts.SlackBuild | |
parent | b869f5dd24c9eaa5aab5527cc17bfcb3475b151e (diff) | |
download | slackbuilds-c18f380c08c5a0a2c91d5ff3d22341a64b1db6e0.tar.gz |
system/adobe-source-han-sans-fonts: Updated for version 1.001R.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/adobe-source-han-sans-fonts/adobe-source-han-sans-fonts.SlackBuild')
-rw-r--r-- | system/adobe-source-han-sans-fonts/adobe-source-han-sans-fonts.SlackBuild | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/system/adobe-source-han-sans-fonts/adobe-source-han-sans-fonts.SlackBuild b/system/adobe-source-han-sans-fonts/adobe-source-han-sans-fonts.SlackBuild index 32dc228a77..c31a747d64 100644 --- a/system/adobe-source-han-sans-fonts/adobe-source-han-sans-fonts.SlackBuild +++ b/system/adobe-source-han-sans-fonts/adobe-source-han-sans-fonts.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=adobe-source-han-sans-fonts -VERSION=${VERSION:-1.000} +VERSION=${VERSION:-1.001R} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -33,11 +33,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# I assume you might not want to do the job in a directory -# that contains spaces in its full path. If you do, try to replace -# all the spaces in your full path or change to other working directory. -SRC_PRGNAM=${SRC_PRGNAM:-SourceHanSans} -FILE_PATHS=("$TMP"/"$PRGNAM"-"$VERSION"/"$SRC_PRGNAM"OTC-"$VERSION"/"$SRC_PRGNAM"-{ExtraLight,Light,Normal,Regular,Medium,Bold,Heavy}.ttc) +SRC_PRGNAM=${SRC_PRGNAM:-source-han-sans} +FONT_NAM=${FONT_NAM:-SourceHanSans} set -e @@ -47,7 +44,10 @@ cd $TMP rm -rf $PRGNAM-$VERSION mkdir -p $TMP/$PRGNAM-$VERSION cd $PRGNAM-$VERSION -unzip "$CWD"/"$SRC_PRGNAM"OTC-"$VERSION".zip +tar -xvzf "$CWD"/"$VERSION".tar.gz "$SRC_PRGNAM"-"$VERSION"/LICENSE.txt \ + "$SRC_PRGNAM"-"$VERSION"/"$FONT_NAM"ReadMe.pdf \ + "$SRC_PRGNAM"-"$VERSION"/SuperOTC/"$FONT_NAM".ttc.zip +unzip "$SRC_PRGNAM"-"$VERSION"/SuperOTC/"$FONT_NAM".ttc.zip chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -57,10 +57,11 @@ find -L . \ # Installing font mkdir -p $PKG/usr/share/fonts/TTF -cp -L "${FILE_PATHS[@]}" $PKG/usr/share/fonts/TTF +cp -L "$FONT_NAM".ttc $PKG/usr/share/fonts/TTF mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/ -cp -L "$CWD"/LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -L "$SRC_PRGNAM"-"$VERSION"/LICENSE.txt "$SRC_PRGNAM"-"$VERSION"/"$FONT_NAM"ReadMe.pdf \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |