summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-01-15 20:46:04 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-01-15 20:46:04 -0200
commitdae8f7d9f878540a792044e711bfec1dfef28165 (patch)
tree42313edf08b2421ecbbc759ddd6dc3fdc9a8f543
parentd781171e1fe9ede079e643769d8108851fbd59a5 (diff)
iceape-l10n-2.7.11-1: changing from i18n to l10n
-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