wok annotate get-flash-plugin/stuff/get-flash-plugin @ rev 305
Add: get-flash-plugin
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 01 00:04:19 2008 +0000 (2008-03-01) |
parents | |
children | c05ff7572e16 |
rev | line source |
---|---|
pascal@305 | 1 #!/bin/sh -e |
pascal@305 | 2 |
pascal@305 | 3 DIR=install_flash_player_9_linux |
pascal@305 | 4 TARBALL=$DIR.tar.gz |
pascal@305 | 5 WEB_SITE="http://www.adobe.com/products/flash/" |
pascal@305 | 6 |
pascal@305 | 7 # Download tarball |
pascal@305 | 8 wget http://fpdownload.macromedia.com/get/flashplayer/current/$TARBALL |
pascal@305 | 9 |
pascal@305 | 10 # Extract |
pascal@305 | 11 tar xzf $TARBALL |
pascal@305 | 12 |
pascal@305 | 13 cd $DIR |
pascal@305 | 14 VERSION="" |
pascal@305 | 15 for i in MAJ MIN REV ; do |
pascal@305 | 16 n=$(grep ^FPVERSION$i flashplayer-installer | cut -d= -f2) |
pascal@305 | 17 [ -n "$VERSION" ] && VERSION=$VERSION. |
pascal@305 | 18 VERSION=$VERSION$n |
pascal@305 | 19 done |
pascal@305 | 20 |
pascal@305 | 21 # Install files |
pascal@305 | 22 cp libflashplayer.so /usr/lib/firefox*/plugins |
pascal@305 | 23 chmod 755 /usr/lib/firefox*/plugins/libflashplayer.so |
pascal@305 | 24 |
pascal@305 | 25 # Create pseudo package |
pascal@305 | 26 mkdir -p fs/usr/bin |
pascal@305 | 27 cp /usr/bin/get-flash-plugin fs/usr/bin |
pascal@305 | 28 find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz |
pascal@305 | 29 ls /usr/lib/firefox*/plugins/libflashplayer.so > files.list |
pascal@305 | 30 cat > receipt <<EOT |
pascal@305 | 31 PACKAGE="flash-plugin" |
pascal@305 | 32 VERSION="$VERSION" |
pascal@305 | 33 CATEGORY="non-free" |
pascal@305 | 34 SHORT_DESC="Adobe Flash Player." |
pascal@305 | 35 WEB_SITE="$WEB_SITE" |
pascal@305 | 36 EOT |
pascal@305 | 37 cpio -o -H newc > flash-plugin-$VERSION.tazpkg <<EOT |
pascal@305 | 38 receipt |
pascal@305 | 39 files.list |
pascal@305 | 40 fs.cpio.gz |
pascal@305 | 41 EOT |
pascal@305 | 42 |
pascal@305 | 43 # Install pseudo package |
pascal@305 | 44 tazpkg install flash-plugin-$VERSION.tazpkg |
pascal@305 | 45 cd .. |
pascal@305 | 46 |
pascal@305 | 47 # Clean |
pascal@305 | 48 rm -rf $DIR $TARBALL |
pascal@305 | 49 |