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:07 +1300 |
commit | 27fa0cdec5ae0d4dc978b01af65d15f6c3e08783 (patch) | |
tree | a915bb3e0806aa59b6c2d5f882b43326058be48d /python/python3-psautohint | |
parent | 26bb0edd6a44df2b319252ec26fd10515d474307 (diff) |
python/python3-psautohint: Fix PRGNAM usage.
Don't introduce new things like PKGNAM.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'python/python3-psautohint')
-rw-r--r-- | python/python3-psautohint/python3-psautohint.SlackBuild | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/python/python3-psautohint/python3-psautohint.SlackBuild b/python/python3-psautohint/python3-psautohint.SlackBuild index a3d4e1e6e00e0..309744c26650e 100644 --- a/python/python3-psautohint/python3-psautohint.SlackBuild +++ b/python/python3-psautohint/python3-psautohint.SlackBuild @@ -24,8 +24,8 @@ cd $(dirname $0) ; CWD=$(pwd) -PRGNAM=psautohint -PKGNAM=python3-psautohint +PRGNAM=python3-psautohint +SRCNAM=${PRGNAM#python3-*} VERSION=${VERSION:-2.4.0} 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 +TMP=${TMP:-/tmp/SBo} +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 -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +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 README.md LICENSE COPYING $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 README.md LICENSE COPYING $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 |