wok-6.x rev 1173
get-skype, get-google-earth, get-flash-plugin: use 'tazpkg pack'
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 02 09:34:54 2008 +0000 (2008-08-02) |
parents | 45650e1226df |
children | 2499cc726561 |
files | get-flash-plugin/stuff/get-flash-plugin get-google-earth/stuff/get-google-earth get-skype/stuff/get-skype |
line diff
1.1 --- a/get-flash-plugin/stuff/get-flash-plugin Sat Aug 02 08:15:51 2008 +0000 1.2 +++ b/get-flash-plugin/stuff/get-flash-plugin Sat Aug 02 09:34:54 2008 +0000 1.3 @@ -29,26 +29,27 @@ 1.4 done 1.5 1.6 # Install files 1.7 -cp libflashplayer.so /usr/lib/firefox*/plugins 1.8 -chmod 755 /usr/lib/firefox*/plugins/libflashplayer.so 1.9 +chmod 755 libflashplayer.so 1.10 +mv libflashplayer.so /usr/lib/firefox*/plugins 1.11 1.12 # Create pseudo package 1.13 -mkdir -p fs/usr/bin 1.14 -cp /usr/bin/get-flash-plugin fs/usr/bin 1.15 -find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz 1.16 -ls /usr/lib/firefox*/plugins/libflashplayer.so > files.list 1.17 -cat > receipt <<EOT 1.18 +while read file; do 1.19 + dest=flash-plugin-$VERSION/fs$(dirname $file) 1.20 + [ -d $dest ] || mkdir -p $dest 1.21 + cp -a $file $dest 1.22 +done <<EOT 1.23 +$(ls /usr/lib/firefox*/plugins/libflashplayer.so) 1.24 +EOT 1.25 +cat > flash-plugin-$VERSION/receipt <<EOT 1.26 PACKAGE="flash-plugin" 1.27 VERSION="$VERSION" 1.28 CATEGORY="non-free" 1.29 SHORT_DESC="Adobe Flash Player." 1.30 WEB_SITE="$WEB_SITE" 1.31 EOT 1.32 -cpio -o -H newc > flash-plugin-$VERSION.tazpkg <<EOT 1.33 -receipt 1.34 -files.list 1.35 -fs.cpio.gz 1.36 -EOT 1.37 + 1.38 +# Pack 1.39 +tazpkg pack flash-plugin-$VERSION 1.40 1.41 # Install pseudo package 1.42 tazpkg install flash-plugin-$VERSION.tazpkg
2.1 --- a/get-google-earth/stuff/get-google-earth Sat Aug 02 08:15:51 2008 +0000 2.2 +++ b/get-google-earth/stuff/get-google-earth Sat Aug 02 09:34:54 2008 +0000 2.3 @@ -26,16 +26,17 @@ 2.4 ./GoogleEarthLinux.bin 2.5 2.6 # Create pseudo package 2.7 -mkdir -p fs/usr/bin 2.8 -cp /usr/bin/get-google-earth fs/usr/bin 2.9 -find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz 2.10 -find /usr/local/google-earth > files.list 2.11 -cat >> files.list <<EOT 2.12 +while read file; do 2.13 + dest=google-earth-$VERSION/fs$(dirname $file) 2.14 + [ -d $dest ] || mkdir -p $dest 2.15 + cp -a $file $dest 2.16 +done <<EOT 2.17 +/sbin/googleearth 2.18 /usr/share/applications/Google-googleearth.desktop 2.19 /usr/share/applications/defaults.list 2.20 -/sbin/googleearth 2.21 +/usr/local/google-earth 2.22 EOT 2.23 -cat > receipt <<EOT 2.24 +cat > google-earth-$VERSION/receipt <<EOT 2.25 PACKAGE="google-earth" 2.26 VERSION="$VERSION" 2.27 CATEGORY="non-free" 2.28 @@ -43,11 +44,9 @@ 2.29 WEB_SITE="http://earth.google.com/" 2.30 DEPENDS="mesa" 2.31 EOT 2.32 -cpio -o -H newc > google-earth-$VERSION.tazpkg <<EOT 2.33 -receipt 2.34 -files.list 2.35 -fs.cpio.gz 2.36 -EOT 2.37 + 2.38 +# Pack 2.39 +tazpkg pack google-earth-$VERSION 2.40 2.41 # Install pseudo package 2.42 tazpkg install google-earth-$VERSION.tazpkg
3.1 --- a/get-skype/stuff/get-skype Sat Aug 02 08:15:51 2008 +0000 3.2 +++ b/get-skype/stuff/get-skype Sat Aug 02 09:34:54 2008 +0000 3.3 @@ -33,17 +33,18 @@ 3.4 ln /usr/share/skype/icons/*16.png /usr/share/pixmaps/skype.png 3.5 3.6 # Create pseudo package 3.7 -mkdir -p fs/usr/bin 3.8 -cp /usr/bin/get-skype fs/usr/bin 3.9 -find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz 3.10 -cat > files.list <<EOT 3.11 +while read file; do 3.12 + dest=skype-$VERSION/fs$(dirname $file) 3.13 + [ -d $dest ] || mkdir -p $dest 3.14 + cp -a $file $dest 3.15 +done <<EOT 3.16 /usr/bin/skype 3.17 /etc/skype.conf 3.18 /usr/share/applications/skype.desktop 3.19 /usr/share/pixmaps/skype.png 3.20 -$(find /usr/share/skype) 3.21 +/usr/share/skype 3.22 EOT 3.23 -cat > receipt <<EOT 3.24 +cat > skype-$VERSION/receipt <<EOT 3.25 PACKAGE="skype" 3.26 VERSION="$VERSION" 3.27 CATEGORY="non-free" 3.28 @@ -51,11 +52,9 @@ 3.29 WEB_SITE="$WEB_SITE" 3.30 DEPENDS="libsigc++ xorg-libXv xorg-libXss" 3.31 EOT 3.32 -cpio -o -H newc > skype-$VERSION.tazpkg <<EOT 3.33 -receipt 3.34 -files.list 3.35 -fs.cpio.gz 3.36 -EOT 3.37 + 3.38 +# Pack 3.39 +tazpkg pack skype-$VERSION 3.40 3.41 # Install pseudo package 3.42 tazpkg install skype-$VERSION.tazpkg