summaryrefslogtreecommitdiff
path: root/mozilla-testing/icecat-i18n/PKGBUILD.in
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2011-12-31 23:02:48 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2011-12-31 23:02:48 +0100
commit6018f318724745ea2800c629d0db77f19ecbd02b (patch)
tree6c57a138047bb35ac0753554f4ea855d56f9e333 /mozilla-testing/icecat-i18n/PKGBUILD.in
parent4f85ee8cc53396a283d492bb29ee2d0696c0b821 (diff)
parent007fa4a3de674cd44c9b4609d8567facc307de51 (diff)
downloadabslibre-6018f318724745ea2800c629d0db77f19ecbd02b.tar.gz
abslibre-6018f318724745ea2800c629d0db77f19ecbd02b.tar.bz2
abslibre-6018f318724745ea2800c629d0db77f19ecbd02b.zip
Merge branch 'master' of git+ssh://parabola-git/abslibre
Diffstat (limited to 'mozilla-testing/icecat-i18n/PKGBUILD.in')
-rw-r--r--mozilla-testing/icecat-i18n/PKGBUILD.in46
1 files changed, 46 insertions, 0 deletions
diff --git a/mozilla-testing/icecat-i18n/PKGBUILD.in b/mozilla-testing/icecat-i18n/PKGBUILD.in
new file mode 100644
index 000000000..90c901e31
--- /dev/null
+++ b/mozilla-testing/icecat-i18n/PKGBUILD.in
@@ -0,0 +1,46 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Contributor: fauno <fauno@kiwwwi.com.ar>
+# Contributor: Figue <ffigue@gmail.com>
+# Based on firefox-i18n package
+
+# 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.
+
+_langpacks=@LANGPACKS@
+
+pkgbase='icecat-i18n'
+pkgname=($(for lang in ${_langpacks[@]}
+ do echo icecat-i18n-$lang | tr A-Z a-z
+ done))
+_pkgver=@_PKGVER@
+pkgver=@PKGVER@
+pkgrel=@PKGREL@
+pkgdesc="Language packs for GNUzilla IceCat."
+arch=('any')
+license=('MPL')
+url="http://www.gnu.org/software/gnuzilla/"
+depends=("icecat=${pkgver}")
+source=($(for lang in ${_langpacks[@]}
+ do echo http://gnuzilla.gnu.org/download/langpacks/$pkgver/$lang.xpi
+ done))
+noextract=($(for lang in ${_langpacks[@]}
+ do echo $lang.xpi
+ done))
+
+build() {
+ cd "${srcdir}"
+}
+
+_path="/usr/lib/icecat-$_pkgver/extensions/"
+
+for lang in ${_langpacks[@]}
+do
+ eval "
+package_icecat-i18n-$(echo $lang | tr A-Z a-z) () {
+ install -Dm644 '$srcdir/$lang.xpi' \"\${pkgdir}\"'${_path}langpack-$lang@firefox.mozilla.org.xpi'
+}
+"
+done
+