diff options
Diffstat (limited to 'system/xorgxrdp/xorgxrdp.SlackBuild')
-rw-r--r-- | system/xorgxrdp/xorgxrdp.SlackBuild | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/system/xorgxrdp/xorgxrdp.SlackBuild b/system/xorgxrdp/xorgxrdp.SlackBuild index 273efbc7d8..de59d724ad 100644 --- a/system/xorgxrdp/xorgxrdp.SlackBuild +++ b/system/xorgxrdp/xorgxrdp.SlackBuild @@ -1,13 +1,19 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for xorgxrdp # Inspired by Phillip Warner <pc_warner@yahoo.com> # Written by David Allen <david.a58@optusnet.com.au> +# 20220414 bkw: Modified by SlackBuilds.org, BUILD=2: +# - add SlackBuild to doc dir. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=xorgxrdp VERSION=${VERSION:-0.2.12} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -17,7 +23,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} @@ -47,9 +57,9 @@ 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 \ + -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 {} \+ # uses autoreconf now autoreconf -vfi @@ -67,13 +77,11 @@ CPPFLAGS="$SLKCFLAGS" \ --disable-static make -make install DESTDIR=$PKG - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc @@ -83,4 +91,4 @@ cd $PKG # Let's not clobber existing config mv etc/X11/xrdp/xorg.conf etc/X11/xrdp/xorg.conf.new -/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 |