diff options
-rw-r--r-- | libraries/xforms/xforms.SlackBuild | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/libraries/xforms/xforms.SlackBuild b/libraries/xforms/xforms.SlackBuild index 4351966258..4b6303382f 100644 --- a/libraries/xforms/xforms.SlackBuild +++ b/libraries/xforms/xforms.SlackBuild @@ -24,11 +24,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220419 bkw: Modified by SlackBuilds.org, BUILD=4: +# - install demos stripped. +# - don't install useless INSTALL* docs. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=xforms VERSION=${VERSION:-1.2.4} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,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 @@ -52,7 +53,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCFILES="ChangeLog COPYING.LIB Copyright INSTALL* README" +DOCFILES="ChangeLog COPYING.LIB Copyright README" # sources with data examples, and pre-built ones DEMOFILES="*.h *.c *.xbm *.xpm *.menu .libs/*" DEMOFDFILES="*.h *.c *.fd *.xpm" @@ -83,9 +84,9 @@ patch -p1 < $CWD/xforms-1.2.4-fno-common.patch 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" \ @@ -104,9 +105,6 @@ CXXFLAGS="$SLKCFLAGS" \ make all make install DESTDIR=$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 - 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 @@ -125,6 +123,9 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/ cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +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 + rm -f $PKG/usr/lib*/*.la mkdir -p $PKG/install |