summaryrefslogtreecommitdiffstats
path: root/system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild')
-rw-r--r--system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild23
1 files changed, 18 insertions, 5 deletions
diff --git a/system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild b/system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild
index 339fa5b7e2..dc0ff70105 100644
--- a/system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild
+++ b/system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild
@@ -26,8 +26,21 @@
# Currently maintained by Dugan Chen.
PRGNAM=adobe-source-sans-pro-font
-VERSION=${VERSION:-1.050}
-SRC=SourceSansPro_FontsOnly-${VERSION}
+
+# ahem
+
+# The version in the tarball
+SRCVERSION=${VERSION:-2.010roman-1.065-italic}
+
+# The version in the package
+VERSION=${PKG_VERSION:-2.010ro1.065it}
+
+# The version in the untarred source directory
+SRC_VERSION=2.010R-ro-1.065R-it
+
+SRC=SourceSansPro_FontsOnly-${SRCVERSION}
+SRCDIR=source-sans-pro-${SRC_VERSION}
+
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,15 +56,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${SRC}
+rm -rf ${SRCDIR}
unzip $CWD/${SRC}.zip
-cd ${SRC}
+cd $SRCDIR
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/share/fonts/OTF/
cp OTF/*.otf $PKG/usr/share/fonts/OTF/