summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMark Blakeney2018-08-08 11:15:41 +1000
committerMark Blakeney2018-08-08 11:15:41 +1000
commit728242eeade8cb05e2f80e72ae95c56aa5d19cb1 (patch)
tree15d8250af02b66572072848d19812d27fa2bba57 /PKGBUILD
parent0a8a5e6449b9d79367d060f96a7229062756ac41 (diff)
downloadaur-728242eeade8cb05e2f80e72ae95c56aa5d19cb1.tar.gz
Hack to use private copy of old glibc 2.27
Will remove this hack when the current bug with glibc 2.28 is fixed.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 17 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 852faffbcc2..313fd5983ea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,24 +4,36 @@
_pkgname=skypeforlinux
pkgname=$_pkgname-stable-bin
pkgver=8.27.0.85
-pkgrel=1
+pkgrel=2
pkgdesc="Skype for Linux - Stable/Release 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-preview-bin" "$_pkgname-beta-bin" "skype")
provides=("$_pkgname" "skype")
-source=("https://repo.skype.com/deb/pool/main/s/$_pkgname/${_pkgname}_${pkgver}_amd64.deb")
-sha256sums=('755a23c4f32a26c0404e9418e0210bcf025717d6448bd0c63af97d9b37e8c7d9')
+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=('755a23c4f32a26c0404e9418e0210bcf025717d6448bd0c63af97d9b37e8c7d9'
+ '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: