diff options
Diffstat (limited to 'libraries/wxPython/wxPython.SlackBuild')
-rw-r--r-- | libraries/wxPython/wxPython.SlackBuild | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/libraries/wxPython/wxPython.SlackBuild b/libraries/wxPython/wxPython.SlackBuild index 148d8b0a87..a5ef7f01be 100644 --- a/libraries/wxPython/wxPython.SlackBuild +++ b/libraries/wxPython/wxPython.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for wxPython @@ -22,10 +22,17 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220410 bkw: Modified by SlackBuilds.org, BUILD=4: +# - fix /usr/include permissions. +# - make .desktop files validate. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=wxPython VERSION=${VERSION:-2.8.12.1} -BUILD=${BUILD:-2} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +42,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -72,9 +83,9 @@ cd $PRGNAM-src-$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 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS -Wno-narrowing" \ @@ -151,12 +162,21 @@ cd wxPython rm -rf $PKG/usr/lib$LIBDIRSUFFIX/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/tools/Editra cd - +# 20220410 bkw: this one .i file gets installed +x, because it's +x +# in the source tarball... in a dir full of .i files that aren't +x. +chmod 644 include/wx-2.8/wx/wxPython/i_files/aui.i + # install wxPython includes cp -rf include/wx-2.8/wx/wxPython $PKG/usr/include/wx-2.8/wx/ 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 +# 20220410 bkw: fix the .desktop files so they validate. +sed -i -e '/^Categories/s,Application;,,' \ + -e '/Icon/s,\.png$,,' \ + $PKG/usr/share/applications/*.desktop + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/wxPython cp -a README.1st.txt docs* $PKG/usr/doc/$PRGNAM-$VERSION cp -a wxPython/docs/* $PKG/usr/doc/$PRGNAM-$VERSION/wxPython @@ -166,9 +186,11 @@ cd $PKG/usr/doc/$PRGNAM-$VERSION/docs rm -rf cocoa latex mac metrowerks microwin msw palmos word cd - +rm -f $PKG/usr/lib*/*.la + mkdir -p $PKG/install cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |