aboutsummaryrefslogtreecommitdiff
path: root/libraries/wxPython
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-10 14:56:49 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-10 14:56:49 -0400
commite8373dd69e762ac03ad71520ac594b18d9e9286f (patch)
tree86ce7015cb8012186f31b2b06a1210e129f7e9bb /libraries/wxPython
parent71bcc8bbbb2c4ed306e1122e1cf521ee9ba5ad28 (diff)
libraries/wxPython: Fix permissions and .desktop.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/wxPython')
-rw-r--r--libraries/wxPython/wxPython.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/libraries/wxPython/wxPython.SlackBuild b/libraries/wxPython/wxPython.SlackBuild
index 355db9f34791..a5ef7f01beb3 100644
--- a/libraries/wxPython/wxPython.SlackBuild
+++ b/libraries/wxPython/wxPython.SlackBuild
@@ -22,11 +22,15 @@
# 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:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +42,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
@@ -82,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" \
@@ -161,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