blob: b0611e23afb2407dee952651a62245ab289bf2d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: mark.blakeney at bullet-systems dot net
# Original Maintainer: Jameson Pugh <imntreal@gmail.com>
_pkgname=skypeforlinux
pkgname=$_pkgname-preview-bin
pkgver=8.51.76.61
pkgrel=2
pkgdesc="Skype for Linux - Preview/Insider Version"
arch=("x86_64")
url="http://www.skype.com"
license=("custom")
depends=("gtk3" "libxss" "gconf" "alsa-lib" "libxtst" "libsecret" "nss" "glibc>=2.28-4")
optdepends=("gnome-keyring")
makedepends=("asar")
conflicts=("$_pkgname" "$_pkgname-bin" "$_pkgname-stable-bin" "$_pkgname-beta-bin" "skype")
provides=("$_pkgname" "skype")
replaces=("$_pkgname-bin")
source=(
"https://repo.skype.com/deb/pool/main/s/$_pkgname/${_pkgname}_${pkgver}_amd64.deb"
)
sha256sums=('1c409fca57dfa10d863b9951af080bda275fd99d3a850c879f2f0af3a63fc92f')
package() {
tar -xJC "$pkgdir" -f data.tar.xz
install -d "$pkgdir/usr/share/licenses/$pkgname"
mv "$pkgdir/usr/share/$_pkgname/LICENSES.chromium.html" \
"$pkgdir/usr/share/licenses/$pkgname/"
rm -rf "$pkgdir/opt"
_f="/usr/share/skypeforlinux/chrome-sandbox"
if [ ! -u "$pkgdir/$_f" ]; then
echo "Adding setuid permission on $_f"
chmod 4755 "$pkgdir/$_f"
fi
# Replace all 16px tray icons with 32px.
_p="/usr/share/skypeforlinux/resources"
cd "$pkgdir/$_p"
asar extract app.asar _tmp
cd _tmp/images/tray
find . -iname '*@2x.png' | while read f; do
cp $f ${f//@2x/}
done
cd "$pkgdir/$_p"
asar pack _tmp app.asar
rm -rf _tmp
}
# vim:set ts=2 sw=2 et:
|