summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Blakeney2018-08-08 11:00:35 +1000
committerMark Blakeney2018-08-08 11:14:59 +1000
commite3fa08c20b44250d716a4b31dc42b85fbb238025 (patch)
treed73ea3b51e5a43205c29d4f4c3ba10dc9af8622c
parent0d59205de45d2cff94f4298a40cee1bfb9b8de17 (diff)
downloadaur-e3fa08c20b44.tar.gz
Hack to use private copy of old glibc 2.27
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD22
2 files changed, 23 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ba844969301..9ba1c26239c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
pkgbase = skypeforlinux-preview-bin
pkgdesc = Skype for Linux - Preview/Insider Version
pkgver = 8.28.76.19
- pkgrel = 1
+ pkgrel = 2
url = http://www.skype.com
arch = x86_64
license = custom
+ makedepends = patchelf
depends = gtk3
depends = libxss
depends = gconf
@@ -21,8 +22,12 @@ pkgbase = skypeforlinux-preview-bin
conflicts = skypeforlinux-beta-bin
conflicts = skype
replaces = skypeforlinux-bin
+ options = !strip
+ options = staticlibs
source = https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_8.28.76.19_amd64.deb
+ source = https://archive.archlinux.org/packages/g/glibc/glibc-2.27-3-x86_64.pkg.tar.xz
sha256sums = a83f19f1943898c45f6a7ce500331eb523b2f0f55399f39e2479b567ef2ffd71
+ sha256sums = a9e1b18d7f613be660556dbd6883781e88a0f5113230147e230d3e2f268792dc
pkgname = skypeforlinux-preview-bin
diff --git a/PKGBUILD b/PKGBUILD
index c896b710fe4..a53da62354a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,25 +4,37 @@
_pkgname=skypeforlinux
pkgname=$_pkgname-preview-bin
pkgver=8.28.76.19
-pkgrel=1
+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")
optdepends=("gnome-keyring")
+makedepends=("patchelf")
+options=("!strip" "staticlibs")
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=('a83f19f1943898c45f6a7ce500331eb523b2f0f55399f39e2479b567ef2ffd71')
+source=(
+"https://repo.skype.com/deb/pool/main/s/$_pkgname/${_pkgname}_${pkgver}_amd64.deb"
+"https://archive.archlinux.org/packages/g/glibc/glibc-2.27-3-${CARCH}.pkg.tar.xz"
+)
+sha256sums=('a83f19f1943898c45f6a7ce500331eb523b2f0f55399f39e2479b567ef2ffd71'
+ 'a9e1b18d7f613be660556dbd6883781e88a0f5113230147e230d3e2f268792dc')
package() {
+ _ldir="/usr/share/$_pkgname"
+ _pdir="$pkgdir/$_ldir"
+ _pexe="$_pdir/$_pkgname"
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/"
+ mv "$_pdir/LICENSES.chromium.html" "$pkgdir/usr/share/licenses/$pkgname/"
rm -rf "$pkgdir/opt"
+ mkdir -p "$_pdir/glibc"
+ tar -xJC "$_pdir/glibc" -f "glibc-2.27-3-$CARCH.pkg.tar.xz"
+ patchelf --set-interpreter "$_ldir/glibc/usr/lib/ld-linux-x86-64.so.2" "$_pexe"
+ patchelf --set-rpath "$_ldir:$_ldir/glibc/usr/lib" "$_pexe"
}
# vim:set ts=2 sw=2 et: