summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2016-10-31 05:01:35 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-11-05 07:15:45 +0700
commitd828fc1d7abc9b30fe87fca9c82b9b88dce82f05 (patch)
treec5f2c296c9371f562426d51e7ead1eb3b4143519
parenta353e1f6d7f0616ae26f926f3b9c9b1a64b508ef (diff)
downloadslackbuilds-d828fc1d7abc9b30fe87fca9c82b9b88dce82f05.tar.gz
network/wire: Updated for version 2.11.2665.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
-rw-r--r--network/wire/doinst.sh3
-rw-r--r--network/wire/wire.SlackBuild26
-rw-r--r--network/wire/wire.info10
3 files changed, 26 insertions, 13 deletions
diff --git a/network/wire/doinst.sh b/network/wire/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/network/wire/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/network/wire/wire.SlackBuild b/network/wire/wire.SlackBuild
index 7c80ab7427..d0229deba7 100644
--- a/network/wire/wire.SlackBuild
+++ b/network/wire/wire.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=wire
-VERSION=${VERSION:-2.11.2661}
+VERSION=${VERSION:-2.11.2665}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -56,12 +56,17 @@ fi
set -e
+DEBARCH="ia32"
+if [ "$ARCH" = "x86_64" ]; then
+ DEBARCH="amd64"
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION && cd $PRGNAM-$VERSION
-ar p $CWD/$PRGNAM\_$VERSION\_amd64.deb data.tar.xz | tar xJv
+ar p $CWD/$PRGNAM-$VERSION-$DEBARCH.deb data.tar.xz | tar xJv
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -70,8 +75,8 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Install data
-mkdir -p $PKG/opt/$PRGNAM
-cp -rf * $PKG/opt/$PRGNAM
+mkdir -p $PKG/opt/${PRGNAM^}
+cp -rf opt/${PRGNAM^}/* $PKG/opt/${PRGNAM^}
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
@@ -80,23 +85,28 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/bin
(
cd $PKG/usr/bin
- ln -sf /opt/$PRGNAM/usr/bin/$PRGNAM $PRGNAM
+ ln -sf /opt/${PRGNAM^}/${PRGNAM^} $PRGNAM
)
# Install .desktop file
mkdir -p $PKG/usr/share/applications
-cat usr/share/applications/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+cat usr/share/applications/${PRGNAM^}.desktop > \
+ $PKG/usr/share/applications/${PRGNAM^}.desktop
# Install .desktop icon
mkdir -p $PKG/usr/share/pixmaps
-install -D -m0644 usr/share/pixmaps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+install -D -m0644 usr/share/icons/hicolor/32x32/apps/$PRGNAM.png \
+ $PKG/usr/share/pixmaps/$PRGNAM.png
+gunzip usr/share/doc/$PRGNAM/changelog.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a usr/share/doc/wire/copyright usr/share/wire/LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a usr/share/doc/$PRGNAM/changelog opt/${PRGNAM^}/LICENSE \
+ $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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/network/wire/wire.info b/network/wire/wire.info
index b19d6e5dfd..781acfe6b5 100644
--- a/network/wire/wire.info
+++ b/network/wire/wire.info
@@ -1,10 +1,10 @@
PRGNAM="wire"
-VERSION="2.11.2661"
+VERSION="2.11.2665"
HOMEPAGE="https://wire.com/"
-DOWNLOAD="UNSUPPORTED"
-MD5SUM=""
-DOWNLOAD_x86_64="https://wire-app.wire.com/linux/wire_2.11.2661_amd64.deb"
-MD5SUM_x86_64="7a88f141a200a579af5d222540f9fe3a"
+DOWNLOAD="https://wire-app.wire.com/linux/wire-2.11.2665-ia32.deb"
+MD5SUM="e8f55844c4382e848b8687b1556315c6"
+DOWNLOAD_x86_64="https://wire-app.wire.com/linux/wire-2.11.2665-amd64.deb"
+MD5SUM_x86_64="ff4258705455b36eb78d2899aa13d435"
REQUIRES=""
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"