void-packages/srcpkgs/skype/template
Lon Willett 18cc5fc716 New package: skype-5.3.0.1
Repackaging of the Debian version of Skype for Void.

Replaces the skype-32bit package (no longer supported).

Closes: #6558 [via git-merge-pr]
2017-07-03 16:03:21 -07:00

39 lines
1.3 KiB
Bash

# Template file for 'skype'
# This just repackages the debian package.
pkgname=skype
version=5.3.0.1
revision=1
only_for_archs="x86_64"
repository="nonfree"
build_style="fetch"
nostrip="yes"
short_desc="Skype for Linux Beta"
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=3fdb61292cfdeef42ddb473d019884a4a8c5798f871793086f5edb6fb14d4e23
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/copyright
vlicense usr/share/doc/skypeforlinux/third-party_attributions.html
# The binary needs to be able to find these under /usr/share/doc
vmkdir usr/share/doc/skypeforlinux
ln -s ../../licenses/skype/copyright ../../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
}