summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/iceape-l10n/.gitignore (renamed from libre/iceape-i18n/.gitignore)0
-rw-r--r--libre/iceape-l10n/Makefile (renamed from libre/iceape-i18n/Makefile)0
-rw-r--r--libre/iceape-l10n/PKGBUILD (renamed from libre/iceape-i18n/PKGBUILD)11
-rw-r--r--libre/iceape-l10n/PKGBUILD.in (renamed from libre/iceape-i18n/PKGBUILD.in)0
4 files changed, 8 insertions, 3 deletions
diff --git a/libre/iceape-i18n/.gitignore b/libre/iceape-l10n/.gitignore
index 3e1eb57b5..3e1eb57b5 100644
--- a/libre/iceape-i18n/.gitignore
+++ b/libre/iceape-l10n/.gitignore
diff --git a/libre/iceape-i18n/Makefile b/libre/iceape-l10n/Makefile
index 89aaccfdc..89aaccfdc 100644
--- a/libre/iceape-i18n/Makefile
+++ b/libre/iceape-l10n/Makefile
diff --git a/libre/iceape-i18n/PKGBUILD b/libre/iceape-l10n/PKGBUILD
index ef9906627..5ad18ba5c 100644
--- a/libre/iceape-i18n/PKGBUILD
+++ b/libre/iceape-l10n/PKGBUILD
@@ -15,28 +15,33 @@ _debver=2.7.11
_debrel=1
_debrepo=http://ftp.debian.org/debian/pool/main/
debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; }
+lowercase() { tr A-Z a-z <<<"$*"; }
_langpacks=(be ca cs de en-GB es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl pt-PT ru sk sv-SE tr zh-CN)
-pkgbase=iceape-i18n
+pkgbase=iceape-l10n
pkgname=($(for lang in ${_langpacks[@]}
do echo $pkgbase-$lang | tr A-Z a-z
done))
_pkgver=2.7.11
pkgver=${_debver}.${_debrel}
-pkgrel=2
+pkgrel=1
pkgdesc="Language packs for Debian Iceape."
arch=('any')
url="http://packages.debian.org/source/sid/iceape"
license=('MPL')
depends=("iceape-libre>=$pkgver")
+
source=()
for lang in ${_langpacks[@]}
do
source+=("${_debrepo}/`debfile ${_debname}`-l10n-$(echo $lang | tr A-Z a-z)_${_debver}-${_debrel}_all.deb")
done
+replaces=(iceape-i18n-$(lowercase "${lang}"))
+conflicts=(iceape-i18n-$(lowercase "${lang}"))
+
build() {
cd "${srcdir}"
for f in *.deb
@@ -52,7 +57,7 @@ _path="/usr/lib/iceape/extensions"
for lang in ${_langpacks[@]}
do
eval "
-package_iceape-i18n-$(echo $lang | tr A-Z a-z)() {
+package_iceape-l10n-$(echo $lang | tr A-Z a-z)() {
install -Dm644 \"\$srcdir$_path/langpack-$lang@iceape.mozilla.org.xpi\" \"\$pkgdir$_path/langpack-$lang@iceape.mozilla.org.xpi\"
}
"
diff --git a/libre/iceape-i18n/PKGBUILD.in b/libre/iceape-l10n/PKGBUILD.in
index 6891b2672..6891b2672 100644
--- a/libre/iceape-i18n/PKGBUILD.in
+++ b/libre/iceape-l10n/PKGBUILD.in