skype: update to 8.73.0.92.

Also:
- use the rpm as distfile,
(the deb has changed dir structure and I vastly prefer to handle rpms),
- simplify do_install(),
- add comments on do_install().
This commit is contained in:
mobinmob 2021-05-15 21:44:16 +03:00 committed by Piraty
parent 959f730b09
commit e3e2f9f1cc

View file

@ -1,39 +1,31 @@
# Template file for 'skype' # Template file for 'skype'
# This just repackages the debian package. # This just repackages the rpm package.
pkgname=skype pkgname=skype
version=8.69.0.77 version=8.73.0.92
revision=1 revision=1
archs="x86_64" archs="x86_64"
create_wrksrc=yes
hostmakedepends="rpmextract"
depends="elogind" depends="elogind"
short_desc="Skype for Linux" short_desc="Skype for Linux"
maintainer="mobinmob <mobinmob@disroot.org>" maintainer="mobinmob <mobinmob@disroot.org>"
license="custom:skype-servicesagreement" license="custom:skype-servicesagreement" # no vlicense
homepage="https://www.skype.com" homepage="https://www.skype.com"
distfiles="https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_${version}_amd64.deb" distfiles="https://repo.skype.com/rpm/stable/skypeforlinux_${version}-1.x86_64.rpm"
checksum=3daaa53e9f81452d1c1fb5c8e31d7fe47a98b62eb7ad04e1993b4f6a0848407d checksum=79503a8c5164046186b8ca192957968455bed4a810aef0e841c83b4bbb5ee4bb
repository="nonfree" repository="nonfree"
nostrip="yes" nostrip="yes"
do_extract() {
ar p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/skypeforlinux_${version}_amd64.deb data.tar.xz | bsdtar xf - ./usr
}
do_install() { do_install() {
# Copy files
vsed -i usr/bin/skypeforlinux -e "s;share/;lib/;g" vcopy "*" /
vbin usr/bin/skypeforlinux # Move executables to usr/lib and change the launcher script
vsed -i "${DESTDIR}/usr/bin/skypeforlinux" -e "s;share/;lib/;g"
vmkdir usr/lib vmkdir usr/lib/skypeforlinux
vcopy usr/share/skypeforlinux usr/lib mv "${DESTDIR}/usr/share/skypeforlinux" "${DESTDIR}/usr/lib/"
# Install NOTICE.txt as license. Skype has only a services
vlicense usr/share/doc/skypeforlinux/third-party_attributions.html # agreement available online.
# The binary needs to be able to find this under /usr/share/doc vlicense "${DESTDIR}/usr/share/doc/skypeforlinux/NOTICE.txt"
vmkdir usr/share/doc/skypeforlinux # Remove unneeded dir.
ln -s ../../licenses/skype/third-party_attributions.html ${DESTDIR}/usr/share/doc/skypeforlinux rm -rf "${DESTDIR}/usr/lib/.build-id"
vinstall usr/share/applications/skypeforlinux.desktop 644 usr/share/applications
vinstall usr/share/pixmaps/skypeforlinux.png 644 usr/share/pixmaps
find usr/share/icons -type f -print | while read _f; do
vinstall "${_f}" 644 "${_f%/*}"
done
} }