graphics/pyformex: Fix 15.0 build.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2022-02-27 02:14:31 -05:00 committed by Robby Workman
parent 2c8e4206ef
commit 7554509f0d
2 changed files with 18 additions and 11 deletions

View file

@ -22,6 +22,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220222 bkw: Modified by SlackBuilds.org, BUILD=2:
# - fix build on 15.0.
# - fix path to icon in .desktop file.
# - add required runtime dep pyside.
# - TODO: someone should look at including the pyformex/extra stuff.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pyformex
@ -38,9 +44,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# 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 "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -75,20 +78,24 @@ cd $PRGNAM-$VERSION
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 \
-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 {} \+
# patch for manpage path
sed -i "s/share\/man/man/" manifest.py
# 20220227 bkw: this moved...
sed -i 's,/etc/X11/rgb.txt,/usr/share/X11/rgb.txt,' pyformex/gui/__init__.py
python setup.py install --root=$PKG
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
sed -i '/Icon/s,=.*,=/usr/share/pixmaps/pyformex-64x64.png,' \
$PKG/usr/share/applications/pyformex.desktop
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
strip $PKG/usr/lib*/python2.7/site-packages/$PRGNAM/lib/*.so
gzip -9 $PKG/usr/man/man*/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING PKG-INFO Description README \

View file

@ -1,10 +1,10 @@
PRGNAM="pyformex"
VERSION="1.0.5"
HOMEPAGE="http://www.nongnu.org/pyformex/"
DOWNLOAD="ftp://bumps.ugent.be/pub/pyformex/pyformex-1.0.5.tar.gz"
DOWNLOAD="https://slackware.uk/~urchlay/src/pyformex-1.0.5.tar.gz"
MD5SUM="5fa1526927c44cf67882195d3f988edd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="PyOpenGL numpy"
REQUIRES="PyOpenGL numpy pyside"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"