aboutsummaryrefslogtreecommitdiff
path: root/libraries/xmpppy
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-19 16:38:14 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-19 16:38:14 -0400
commit74d9624f60842740bed0d6267b2ae520347fd826 (patch)
tree0cc721532c6da6a873af8d0cc2ceaf0a66c903ac /libraries/xmpppy
parenteaed9c30b58ce3a71474d87bd34eaff34cca9c74 (diff)
libraries/xmpppy: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/xmpppy')
-rw-r--r--libraries/xmpppy/xmpppy.SlackBuild30
1 files changed, 11 insertions, 19 deletions
diff --git a/libraries/xmpppy/xmpppy.SlackBuild b/libraries/xmpppy/xmpppy.SlackBuild
index a30cdc90f6683..b68b65762815e 100644
--- a/libraries/xmpppy/xmpppy.SlackBuild
+++ b/libraries/xmpppy/xmpppy.SlackBuild
@@ -22,41 +22,32 @@
# 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=3:
+# - add SlackBuild to the doc dir.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xmpppy
VERSION=${VERSION:-0.5.0rc1}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-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
fi
+[ "$ARCH" = "x86_64" ] && LIBDIRSUFFIX=64
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-${PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
@@ -71,16 +62,17 @@ 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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/python2.7/site-packages/
cp -a xmpp $PKG/usr/lib$LIBDIRSUFFIX/python2.7/site-packages/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/* ChangeLog MANIFEST README $PKG/usr/doc/$PRGNAM-$VERSION
-find $PKG/usr/doc -type f -exec chmod 0644 {} \;
+find $PKG/usr/doc -type f -exec chmod 0644 {} \+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc