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