Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:maxiotis
skypeforlinux
skypeforlinux.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skypeforlinux.spec of Package skypeforlinux
%define debug_package %{nil} # version: curl -s -H 'Snap-Device-Series: 16' http://api.snapcraft.io/v2/snaps/info/skype | jq '."channel-map" | map(select(.channel.architecture == "amd64" and .channel.name == "stable")) | .[0].version' # url: curl -s -H 'Snap-Device-Series: 16' http://api.snapcraft.io/v2/snaps/info/skype | jq '."channel-map" | map(select(.channel.architecture == "amd64" and .channel.name == "stable")) | .[0].download.url' Name: skypeforlinux Version: 0.0 Release: 0 Summary: Skype keeps the world talking, for free License: Skype End User License Agreement Group: Productivity/Scientific/Physics Url: https://www.skype.com/ Source0: %{name}.snap BuildRequires: jq BuildRequires: squashfs BuildRequires: desktop-file-utils BuildRequires: hicolor-icon-theme %description Skype keeps you together. Call, message and share with others. %prep unsquashfs -d skype_snap/ %{SOURCE0} %build %install mkdir -p %{buildroot}%{_bindir} cat >%{buildroot}%{_bindir}/%{name} <<'EOF' #!/bin/sh SCRIPT=$(readlink -f "$0") USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..) SKYPE_PATH="$USR_DIRECTORY/share/skypeforlinux/skypeforlinux" SKYPE_LOGS="$HOME/.config/skypeforlinux/logs" mkdir -p $SKYPE_LOGS nohup "$SKYPE_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$SKYPE_LOGS/skype-startup.log" 2>&1 & EOF chmod 775 %{buildroot}%{_bindir}/%{name} mkdir -p %{buildroot}%{_datadir}/%{name} cp -frp skype_snap/%{_datadir}/%{name}/* %{buildroot}%{_datadir}/%{name}/ install -m 0644 -D -p skype_snap/meta/gui/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop install -m 0644 -D -p skype_snap/meta/gui/%{name}-share.desktop %{buildroot}%{_datadir}/applications/%{name}-share.desktop install -m 0644 -D -p skype_snap/usr/share/kservices5/ServiceMenus/%{name}.desktop %{buildroot}%{_datadir}/kservices5/ServiceMenus/%{name}.desktop sed -i "s/Icon=.*/Icon=%{name}/" %{buildroot}%{_datadir}/applications/%{name}.desktop sed -i "s/Exec=skype/Exec=%{name}/" %{buildroot}%{_datadir}/applications/%{name}.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop sed -i "s/Icon=.*/Icon=%{name}/" %{buildroot}%{_datadir}/applications/%{name}-share.desktop sed -i "s/Exec=skype/Exec=%{name}/" %{buildroot}%{_datadir}/applications/%{name}-share.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-share.desktop sed -i "s/Icon=.*/Icon=%{name}/" %{buildroot}%{_datadir}/kservices5/ServiceMenus/%{name}.desktop sed -i "s/Exec=skype/Exec=%{name}/" %{buildroot}%{_datadir}/kservices5/ServiceMenus/%{name}.desktop for size in 16 32 256 512 1024; do install -p -D -m 644 skype_snap/%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png \ %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png done install -p -D -m 644 skype_snap/%{_datadir}/pixmaps/%{name}.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png install -p -D -m 644 skype_snap/usr/share/doc/%{name}/NOTICE.txt %{buildroot}/%{_docdir}/%{name}/NOTICE.txt %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %{_bindir}/%{name} %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}-share.desktop %dir %{_datadir}/icons/hicolor %dir %{_datadir}/icons/hicolor/* %dir %{_datadir}/icons/hicolor/*/apps %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/pixmaps/%{name}.png %dir %{_datadir}/kservices5 %dir %{_datadir}/kservices5/ServiceMenus %{_datadir}/kservices5/ServiceMenus/%{name}.desktop %dir %{_docdir}/%{name} %doc %{_docdir}/%{name}/NOTICE.txt %changelog * Mon Sep 21 2015 Axiotis Michail -
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor