diff options
Diffstat (limited to 'libre/icedove-l10n')
-rw-r--r-- | libre/icedove-l10n/PKGBUILD | 4 | ||||
-rw-r--r-- | libre/icedove-l10n/check.sh | 15 |
2 files changed, 11 insertions, 8 deletions
diff --git a/libre/icedove-l10n/PKGBUILD b/libre/icedove-l10n/PKGBUILD index e6b72d773..948f76c58 100644 --- a/libre/icedove-l10n/PKGBUILD +++ b/libre/icedove-l10n/PKGBUILD @@ -85,7 +85,7 @@ _languages=( pkgname=() source=('brand.dtd' 'brand.properties' 'region.properties') -_pkgurl=https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/linux-i686/xpi +_url=https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/linux-i686/xpi _calurl=https://ftp.mozilla.org/pub/calendar/lightning/candidates/$_calver-candidates/build1/linux-i686 for _lang in "${_languages[@]}"; do @@ -93,7 +93,7 @@ for _lang in "${_languages[@]}"; do _pkgname=$pkgbase-${_locale,,} pkgname+=($_pkgname) - source+=("$pkgbase-$pkgver-$_locale.xpi::$_pkgurl/$_locale.xpi" + source+=("$pkgbase-$pkgver-$_locale.xpi::$_url/$_locale.xpi" "$_calbase-l10n-$_calver-$_locale.xpi::$_calurl/lightning-$_calver.$_locale.linux-i686.xpi") eval "package_$_pkgname() { _package $_lang diff --git a/libre/icedove-l10n/check.sh b/libre/icedove-l10n/check.sh index 4c92ca12e..ea37f4c4f 100644 --- a/libre/icedove-l10n/check.sh +++ b/libre/icedove-l10n/check.sh @@ -1,15 +1,18 @@ #!/bin/bash # helper script to check the local language list against upstream +# extract pkgbase from pkgbuild +pkgbase="$(bash -c "source PKGBUILD && echo \"\$pkgbase\"")" + # extract language list from pkgbuild bash -c "source PKGBUILD && printf '%s\n' \"\${_languages[@]}\" | cut -d ' ' -f1 | sort" \ - > icedove-l10n.local + > $pkgbase-l10n.local # load language list from upstream -url="$(bash -c "source PKGBUILD && echo \"\$_pkgurl\"")/" +url="$(bash -c "source PKGBUILD && echo \"\$_url\"")/" curl -sL $url | \ - grep '\.xpi' | cut -d'"' -f2 | rev | cut -d'/' -f1 | rev | cut -d'.' -f1 | sort\ - > icedove-l10n.remote + grep '\.xpi' | cut -d'"' -f2 | rev | cut -d'/' -f1 | cut -d'.' -f2 | rev | sort\ + > $pkgbase-l10n.remote -diff -rupN icedove-l10n.local icedove-l10n.remote -rm -f icedove-l10n.{local,remote} +diff -rupN $pkgbase-l10n.local $pkgbase-l10n.remote +rm -f $pkgbase-l10n.{local,remote} |