network/wire: Updated for version 2.11.2665.

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2016-10-31 05:01:35 +02:00 committed by Willy Sudiarto Raharjo
parent a353e1f6d7
commit d828fc1d7a
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 26 additions and 13 deletions

3
network/wire/doinst.sh Normal file
View file

@ -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

View file

@ -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}

View file

@ -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"