diff options
Diffstat (limited to 'python/python3-uharfbuzz/python3-uharfbuzz.SlackBuild')
-rw-r--r-- | python/python3-uharfbuzz/python3-uharfbuzz.SlackBuild | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/python/python3-uharfbuzz/python3-uharfbuzz.SlackBuild b/python/python3-uharfbuzz/python3-uharfbuzz.SlackBuild index ae0b5e7574721..6a99c3e670a89 100644 --- a/python/python3-uharfbuzz/python3-uharfbuzz.SlackBuild +++ b/python/python3-uharfbuzz/python3-uharfbuzz.SlackBuild @@ -25,13 +25,12 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-uharfbuzz -VERSION=${VERSION:-0.20.0} +VERSION=${VERSION:-0.37.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} SRCNAM=${SRCNAM:-uharfbuzz} -harfbuzz_src=${harfbuzz_src:-harfbuzz} -harfbuzz_ver=${harfbuzz_ver:-3.2.0} + if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -71,10 +70,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -tar xvf $CWD/$harfbuzz_src-$harfbuzz_ver.tar.gz - -cp -a $TMP/$harfbuzz_src-$harfbuzz_ver/src $TMP/$SRCNAM-$VERSION/harfbuzz/ +unzip $CWD/$SRCNAM-$VERSION.zip cd $SRCNAM-$VERSION @@ -85,19 +81,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -export SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION} -python3 -m build --wheel --no-isolation -PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python3 -m installer --destdir="$PKG" dist/*.whl +python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION -cd .. && cd $TMP/$harfbuzz_src-$harfbuzz_ver -cp -a COPYING AUTHORS THANKS $PKG/usr/doc/$PRGNAM-$VERSION -cd .. && cd $SRCNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \+ |