diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-06-02 22:54:10 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-06-02 22:54:10 -0300 |
commit | 4ce84837520f8c56ae998d5d2d98380faf3e3eb5 (patch) | |
tree | b22e90f4dc9b313fbc814852c874e4fb31a8d0c7 /libre/iceape-i18n/PKGBUILD | |
parent | 5f74139e49aec90fef556447373608db10d9f1e6 (diff) | |
parent | 96b3ccdea0907e8df071273f302e1640b05d07c6 (diff) |
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to 'libre/iceape-i18n/PKGBUILD')
-rw-r--r-- | libre/iceape-i18n/PKGBUILD | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/libre/iceape-i18n/PKGBUILD b/libre/iceape-i18n/PKGBUILD new file mode 100644 index 000000000..3c0b42b31 --- /dev/null +++ b/libre/iceape-i18n/PKGBUILD @@ -0,0 +1,81 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer: André Silva <andre.paulista@adinet.com.uy> +# Contributor: fauno <fauno@kiwwwi.com.ar> +# Contributor: Figue <ffigue@gmail.com> +# Based on icecat-i18n package, which is in turn based on firefox-i18n + +# When updating to a newer upstream release: +# - Edit variables in in Makefile. +# - (optionally) edit PKGBUILD.in +# - Run 'make'. It will take care of everything else for you. + +_debname=iceape +_debver=2.7.4 +_debrel=2 +_debrepo=http://ftp.debian.org/debian/pool/main/ +debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; } + +_langpacks=(be ca cs de en-GB 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 +pkgname=($(for lang in ${_langpacks[@]} + do echo $pkgbase-$lang | tr A-Z a-z + done)) +_pkgver=2.7.4 +pkgver=${_debver}.${_debrel} +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 + +build() { + cd "${srcdir}" + for f in *.deb + do + bsdtar xf $f + bsdtar xf data.tar.gz + done +} + +_path="/usr/lib/iceape/extensions" + + +for lang in ${_langpacks[@]} +do + eval " +package_iceape-i18n-$(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\" +} +" +done + +md5sums=('6d773ee12e9e3475f20f7ae1a13ae60b' + 'cce134a647f71808c15d3a693c6e0d91' + '289b5df66a7bf79a900f7033f034b941' + '90f7836b6dbe752fe0eb6e85be961dad' + '46f6170f7ca9a0e7d1be7cf2da411089' + '16fcf9e6c74a25ec164e4d0d9be7a9d4' + 'ad7eb7ff8ec821d3bb8baedb4c83b9a1' + '612ed06337160596629f92699bc9dc08' + '8204487072c23d70c1332c32b75850f1' + 'd653627ccc8f188d8f908ad60ee9c10d' + '146e7bb6829b44c9b971d271a9682f47' + 'eed45ddcec761bb76eec33ca26b8f869' + '0fb90f7c8de00ddcf7dc500264979cba' + '3454cfd4e79a7a2ef2a519133f57a5a7' + '880b81a89f71851f146e3e8bb45c0215' + 'e219a4a6a277edf7da1ecaf29203887f' + '9dff81762577df8b105912457a8ebdcd' + 'a7431be429fc93dc9876e3376441855b' + '19cb8a522fc38aeabdf375c2118efe7a' + '7d1e1f279bf3786917b11168251ced57' + '918022ba06904a99caffa5654a47f8b3' + '138d693f00d34ed8f943fca053e9e876') |