wok-next rev 300
Add: get-skype
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 29 22:36:24 2008 +0000 (2008-02-29) |
parents | cdefb5496e47 |
children | b258996b40a5 |
files | get-skype/receipt get-skype/stuff/get-skype |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/get-skype/receipt Fri Feb 29 22:36:24 2008 +0000 1.3 @@ -0,0 +1,16 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="get-skype" 1.7 +VERSION="1.00" 1.8 +CATEGORY="non-free" 1.9 +SHORT_DESC="Get Skype Internet Telephony." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://www.skype.com/" 1.12 + 1.13 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.14 +genpkg_rules() 1.15 +{ 1.16 + mkdir -p $fs/usr/bin 1.17 + cp stuff/get-skype $fs/usr/bin 1.18 +} 1.19 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/get-skype/stuff/get-skype Fri Feb 29 22:36:24 2008 +0000 2.3 @@ -0,0 +1,52 @@ 2.4 +#!/bin/sh -e 2.5 + 2.6 +# Download tarball 2.7 +WEB_SITE="http://www.skype.com/" 2.8 +wget ${WEB_SITE}go/getskype-linux-static 2.9 + 2.10 +# Extract 2.11 +TARBALL=$(ls getskype-linux-static skype*.tar.bz2 2> /dev/null || true) 2.12 +tar xjf $TARBALL 2.13 +VERSION=$(ls -d skype_static-*/) 2.14 +VERSION=${VERSION%/} 2.15 +VERSION=${VERSION#skype_static-} 2.16 +cd skype_static-$VERSION 2.17 + 2.18 +# Install files 2.19 +mkdir -p /usr/share/skype 2.20 +mv */ LICENSE /usr/share/skype 2.21 +mv skype /usr/bin 2.22 +mv skype.conf /etc 2.23 +mv skype.desktop /usr/share/applications 2.24 + 2.25 +# Create pseudo package 2.26 +mkdir -p fs/usr/share/skype 2.27 +mv README fs/usr/share/skype 2.28 +find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz 2.29 +cat > files.list <<EOT 2.30 +/usr/bin/skype 2.31 +/etc/skype.conf 2.32 +/usr/share/applications/skype.desktop 2.33 +$(find /usr/share/skype) 2.34 +/usr/share/skype/README 2.35 +EOT 2.36 +cat > receipt <<EOT 2.37 +PACKAGE="skype" 2.38 +VERSION="$VERSION" 2.39 +CATEGORY="non-free" 2.40 +SHORT_DESC="Skype Internet Telephony." 2.41 +WEB_SITE="$WEB_SITE" 2.42 +DEPENDS="libsigc++" 2.43 +EOT 2.44 +cpio -o -H newc > skype-$VERSION.tazpkg <<EOT 2.45 +receipt 2.46 +files.list 2.47 +fs.cpio.gz 2.48 +EOT 2.49 + 2.50 +# Install pseudo package 2.51 +tazpkg install skype-$VERSION.tazpkg 2.52 +cd .. 2.53 + 2.54 +# Clean 2.55 +rm -rf skype_static-$VERSION* $TARBALL