diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-12 13:23:00 +1300 |
---|---|---|
committer | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-12 15:02:06 +1300 |
commit | d78d91660f2bb17e8b215dbc9a56c58809314eb0 (patch) | |
tree | cedf8cf7ccb6f41397f16594d6da06e44a3aa99b /python | |
parent | 745084a7e41baccbdeab98de9722ab6580c9d904 (diff) | |
download | slackbuilds-d78d91660f2bb17e8b215dbc9a56c58809314eb0.tar.gz |
python/python3-fontMath: Fix PRGNAM usage.
Don't introduce new things like PKGNAM.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'python')
-rw-r--r-- | python/python3-fontMath/python3-fontMath.SlackBuild | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/python/python3-fontMath/python3-fontMath.SlackBuild b/python/python3-fontMath/python3-fontMath.SlackBuild index 46721ff93b..e0360355d6 100644 --- a/python/python3-fontMath/python3-fontMath.SlackBuild +++ b/python/python3-fontMath/python3-fontMath.SlackBuild @@ -24,8 +24,8 @@ cd $(dirname $0) ; CWD=$(pwd) -PRGNAM=fontMath -PKGNAM=python3-fontMath +PRGNAM=python3-fontMath +SRCNAM=${PRGNAM#python3-*} VERSION=${VERSION:-0.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -43,12 +43,12 @@ fi # the name of the created package would be, and then exit. This information # could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 fi TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PKGNAM +PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} set -e @@ -56,9 +56,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -unzip $CWD/$PRGNAM-$VERSION.zip -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +unzip $CWD/$SRCNAM-$VERSION.zip +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -68,12 +68,12 @@ find -L . \ python3 setup.py install --root=$PKG -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a License.txt README.md $PKG/usr/doc/$PKGNAM-$VERSION -cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a License.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |