get-scripts rev 47
firefox-official: fix paths
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 04 18:56:03 2015 +0200 (2015-06-04) |
parents | b2a3c2ad2631 |
children | ec186679eb26 |
files | firefox-official |
line diff
1.1 --- a/firefox-official Fri May 29 14:40:00 2015 +0200 1.2 +++ b/firefox-official Thu Jun 04 18:56:03 2015 +0200 1.3 @@ -18,16 +18,28 @@ 1.4 [ -f $TARBALL ] || 1.5 abort_package "Could not download $TARBALL from $WGET_URL. Exiting." 1.6 1.7 -DESTDIR=$PACKAGE-$VERSION/fs 1.8 +DESTDIR=$PWD/$PACKAGE-$VERSION/fs 1.9 1.10 mkdir -p \ 1.11 - ${DESTDIR}/usr/bin \ 1.12 - ${DESTDIR}/usr/lib/firefox-${VERSION} \ 1.13 - ${DESTDIR}/usr/share/pixmaps 1.14 -tar xjf $TARBALL -C ${DESTDIR}/usr/lib/firefox-${VERSION} 1.15 + $DESTDIR/usr/bin \ 1.16 + $DESTDIR/usr/lib/firefox-$VERSION \ 1.17 + $DESTDIR/usr/share/applications \ 1.18 + $DESTDIR/usr/share/pixmaps 1.19 +tar xjf $TARBALL -C $DESTDIR/usr/lib/firefox-$VERSION 1.20 # /usr/bin/firefox-official + pixmap 1.21 -ln -s ../lib/firefox-${VERSION}/firefox ${DESTDIR}/usr/bin/${PACKAGE} 1.22 -ln -s ../../lib/firefox-${VERSION}/browser/icons/mozicon128.png \ 1.23 - ${DESTDIR}/usr/share/pixmaps/${PACKAGE}.png 1.24 +cd $DESTDIR/usr/bin 1.25 +ln -s $(find ../lib/firefox-$VERSION | sed '/firefox-bin$/!dq) $PACKAGE 1.26 +cd $DESTDIR/usr/share/pixmaps 1.27 +ln -s $(find ../../lib/firefox-$VERSION | sed '/zicon128.png$/!dq) $PACKAGE.png 1.28 +cat > $DESTDIR/usr/share/applications/$PACKAGE <<EOT 1.29 +[Desktop Entry] 1.30 +Encoding=UTF-8 1.31 +Name=Firefox Web Browser (official) 1.32 +Name[fr]=Navigateur web Firefox (officiel) 1.33 +Exec=firefox-official 1.34 +Icon=firefox-official 1.35 +Type=Application 1.36 +Categories=Application;Network; 1.37 +EOT 1.38 # Remove updater files (users can't upgrade anyway) 1.39 -rm -f ${DESTDIR}/usr/lib/firefox-${VERSION}/update* 1.40 +rm -f $DESTDIR/usr/lib/firefox-$VERSION/update*