diff options
Diffstat (limited to 'network/skypeforlinux/skypeforlinux.SlackBuild')
-rw-r--r-- | network/skypeforlinux/skypeforlinux.SlackBuild | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/network/skypeforlinux/skypeforlinux.SlackBuild b/network/skypeforlinux/skypeforlinux.SlackBuild index d9fd4a4a8d..8172e0fb75 100644 --- a/network/skypeforlinux/skypeforlinux.SlackBuild +++ b/network/skypeforlinux/skypeforlinux.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for skypeforlinux -# Copyright 2017, 2018, 2019 Mario Preksavec, Zagreb, Croatia +# Copyright 2017, 2024 Mario Preksavec, Zagreb, Croatia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=skypeforlinux -VERSION=${VERSION:-8.51.0.92} +VERSION=${VERSION:-8.109.0.209} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -51,10 +61,10 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $PKG if [ -f $CWD/${PRGNAM}_${VERSION}_amd64.deb ]; then - ar p $CWD/${PRGNAM}_${VERSION}_amd64.deb data.tar.xz | tar -xvJ + ar p $CWD/${PRGNAM}_${VERSION}_amd64.deb data.tar.gz | tar -xvz elif [ -f $CWD/${PRGNAM}-64.deb ]; then # Support the website download - ar p $CWD/${PRGNAM}-64.deb data.tar.xz | tar -xvJ + ar p $CWD/${PRGNAM}-64.deb data.tar.gz | tar -xvz VERSION=$(ar p $CWD/${PRGNAM}-64.deb control.tar.gz \ | tar -Ozxf - ./control | awk '/^Version:/{print $NF}') fi @@ -67,14 +77,6 @@ find -L . \ rm -rf $PKG/opt -# https://github.com/maelnor/skype-dbus-mock -install -Dm 644 $CWD/skype-dbus-mock/skype-dbus-mock.conf \ - $PKG/usr/share/dbus-1/system.d/skype-dbus-mock.conf -install -Dm 644 $CWD/skype-dbus-mock/org.freedesktop.login1.service \ - $PKG/usr/share/dbus-1/system-services/org.freedesktop.login1.service -install -Dm 755 $CWD/skype-dbus-mock/skype-dbus-mock.py \ - $PKG/usr/bin/skype-dbus-mock - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mv $PKG/usr/share/$PRGNAM/LICENSE* $PKG/usr/doc/$PRGNAM-$VERSION mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION @@ -88,4 +90,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |