Skip to content

Commit

Permalink
Merge pull request #69 from mariux64/add-signal-desktop-1252
Browse files Browse the repository at this point in the history
signal-desktop: update 1.25.1 to 1.25.2
  • Loading branch information
pmenzel authored Jun 28, 2019
2 parents cb50fb4 + 683ca63 commit c02c288
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions signal-desktop-1.25.2-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#! /bin/bash

PKG=signal-desktop
VERSION=1.25.2
BUILD=0

PREFIX=/pkg/$PKG-$VERSION-$BUILD

. /pkg/node-10.13.0-0/profile

export PATH

set -xe
umask 022

node --version

BUILD_TMPDIR=/scratch/local2/$PKG-$VERSION-$BUILD.build.tmp
test -d $BUILD_TMPDIR && chmod -c -R u+rwx $BUILD_TMPDIR && rm -rf $BUILD_TMPDIR
mkdir -p $BUILD_TMPDIR/home
export TMPDIR=$BUILD_TMPDIR
export HOME=$BUILD_TMPDIR/home

exec </dev/null

mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
EOF
. $PREFIX/profile

# export MAKEFLAGS="-j $(nproc)"

BUILDDIR=$PREFIX/build

set -x

mkdir -p $BUILDDIR
cd $BUILDDIR

S=signal-desktop-${VERSION}

[ -d Signal-Desktop ] || git clone https://github.com/signalapp/Signal-Desktop.git

cd Signal-Desktop

# git pull --rebase

git checkout tags/v${VERSION}

npm --version
node --version
npm install yarn
./node_modules/yarn/bin/yarn versions
./node_modules/yarn/bin/yarn install
./node_modules/yarn/bin/yarn generate
./node_modules/yarn/bin/yarn build-release

find ${BUILDDIR} -perm -700 ! -perm -005 -exec chmod o+rx '{}' ';'

for e in signal-desktop \
'*.so' \
'*.pak' \
'*.bin' \
icudtl.dat \
locales \
resources \
; do
cp -ax ${BUILDDIR}/Signal-Desktop/release/linux-unpacked/$e ${PREFIX}/
done


mkdir -p ${PREFIX}/bin

cat >${PREFIX}/bin/signal-desktop <<__EOS__
#!/bin/sh
exec ${PREFIX}/signal-desktop $@
__EOS__

chmod 755 ${PREFIX}/bin/signal-desktop

0 comments on commit c02c288

Please sign in to comment.