32 lines
1.0 KiB
Bash
32 lines
1.0 KiB
Bash
# Template file for 'skype'
|
|
# This just repackages the rpm package.
|
|
pkgname=skype
|
|
version=8.92.0.204
|
|
revision=1
|
|
archs="x86_64"
|
|
create_wrksrc=yes
|
|
hostmakedepends="rpmextract"
|
|
depends="elogind"
|
|
short_desc="Skype for Linux"
|
|
maintainer="mobinmob <mobinmob@disroot.org>"
|
|
license="custom:skype-servicesagreement" # no vlicense
|
|
homepage="https://www.skype.com"
|
|
distfiles="https://repo.skype.com/rpm/stable/skypeforlinux_${version}-1.x86_64.rpm"
|
|
checksum=18bb480620f6c4f57d7c9cfe2d16cd745d8b53ddf9d1457afb9405233fe4b966
|
|
repository="nonfree"
|
|
nostrip="yes"
|
|
|
|
do_install() {
|
|
# Copy files
|
|
vcopy "*" /
|
|
# Move executables to usr/lib and change the launcher script
|
|
vsed -i "${DESTDIR}/usr/bin/skypeforlinux" -e "s;share/;lib/;g"
|
|
vmkdir usr/lib/skypeforlinux
|
|
mv "${DESTDIR}/usr/share/skypeforlinux" "${DESTDIR}/usr/lib/"
|
|
# Install NOTICE.txt as license. Skype has only a services
|
|
# agreement available online.
|
|
vlicense "${DESTDIR}/usr/share/doc/skypeforlinux/NOTICE.txt"
|
|
# Remove unneeded dir.
|
|
rm -rf "${DESTDIR}/usr/lib/.build-id"
|
|
}
|