# SliTaz package receipt. PACKAGE="firefox-langpack-es_ES" VERSION="17.0.11esr" CATEGORY="localization" SHORT_DESC="Spanish Language Package for firefox" MAINTAINER="lufeng369@slitaz.org" LICENSE="MPL2" WEB_SITE="https://www.mozilla.com" LANG=$(echo $PACKAGE | cut -d'-' -f3 | tr '_' '-') LANG_DIR="langpack-$LANG@firefox.mozilla.org" TARBALL="$PACKAGE-$VERSION.zip" WGET_URL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/xpi/$LANG.xpi" DEPENDS="firefox" # What is the latest version available today? current_version() { wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \ sed '/firefox\/releases\/[0-9]/!d;s|.*firefox/releases/\([^/]*\)/.*|\1|' | sort -Vr | sed q } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { EXTDIR="$fs/usr/lib/firefox-$VERSION/extensions/$LANG_DIR" mkdir -p $EXTDIR cp -a $src/* $EXTDIR }