void-packages/srcpkgs/skype/template
Lon Willett 6f1c81e025 skype: update to 8.20.76.1
Closes #13499.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-04-16 17:01:39 +02:00

38 lines
1.2 KiB
Bash

# Template file for 'skype'
# This just repackages the debian package.
pkgname=skype
version=8.20.76.1
revision=1
only_for_archs="x86_64"
repository="nonfree"
build_style="fetch"
nostrip="yes"
short_desc="Skype for Linux"
maintainer="Lon Willett <xgit@lonw.net>"
license="skype"
homepage="https://www.skype.com"
distfiles="https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_${version}_amd64.deb"
checksum=def9d2da360db190d2d2bb9446d457f5c7a0ac0285d66f6ef0c6978795238e61
do_extract() {
ar p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/skypeforlinux_${version}_amd64.deb data.tar.xz | tar xJpf - ./usr
}
do_install() {
vbin usr/bin/skypeforlinux
vmkdir usr/share
vcopy usr/share/skypeforlinux usr/share
vlicense usr/share/doc/skypeforlinux/third-party_attributions.html
# The binary needs to be able to find this under /usr/share/doc
vmkdir usr/share/doc/skypeforlinux
ln -s ../../licenses/skype/third-party_attributions.html ${DESTDIR}/usr/share/doc/skypeforlinux
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
}