41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Template file for 'skype'
|
|
# This just repackages the debian package.
|
|
pkgname=skype
|
|
version=8.53.0.85
|
|
revision=1
|
|
archs="x86_64"
|
|
build_style="fetch"
|
|
depends="elogind"
|
|
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=fbb31b857bcb0b406cb1dd42336948c2f0a04caa229b9e4b6ff6e6bc5a8a836b
|
|
repository="nonfree"
|
|
nostrip="yes"
|
|
|
|
do_extract() {
|
|
ar p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/skypeforlinux_${version}_amd64.deb data.tar.xz | tar xJpf - ./usr
|
|
}
|
|
|
|
do_install() {
|
|
|
|
vsed -i usr/bin/skypeforlinux -e "s;share/;lib/;g"
|
|
vbin usr/bin/skypeforlinux
|
|
|
|
vmkdir usr/lib
|
|
vcopy usr/share/skypeforlinux usr/lib
|
|
|
|
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
|
|
}
|