diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-01-03 12:07:28 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-01-03 12:07:28 -0300 |
commit | 41f96635759489132086f9c599af6b6b8af20db2 (patch) | |
tree | d2e5bb1996af265637ddab938b5a79d9af004c56 /mozilla-testing/iceweasel-i18n/PKGBUILD.in | |
parent | df7d8525f2e848a9a6b1f317c1426982b464adea (diff) | |
parent | 6f87594cae18e4ec676280e40b38984ea3bc39e6 (diff) | |
download | abslibre-41f96635759489132086f9c599af6b6b8af20db2.tar.gz abslibre-41f96635759489132086f9c599af6b6b8af20db2.tar.bz2 abslibre-41f96635759489132086f9c599af6b6b8af20db2.zip |
Merge branch 'master' of ssh://gparabola/abslibre
Diffstat (limited to 'mozilla-testing/iceweasel-i18n/PKGBUILD.in')
-rw-r--r-- | mozilla-testing/iceweasel-i18n/PKGBUILD.in | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mozilla-testing/iceweasel-i18n/PKGBUILD.in b/mozilla-testing/iceweasel-i18n/PKGBUILD.in new file mode 100644 index 000000000..691c80c0e --- /dev/null +++ b/mozilla-testing/iceweasel-i18n/PKGBUILD.in @@ -0,0 +1,63 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# 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=@DEBNAME@ +_debver=@DEBVER@ +_debrel=@DEBREL@ +_debrepo=@DEBREPO@ +debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; } + +_langpacks=@LANGPACKS@ + +pkgbase=iceweasel-i18n +pkgname=($(for lang in ${_langpacks[@]} + do echo $pkgbase-$lang | tr A-Z a-z + done)) +_pkgver=@PKGVER@ +pkgver=${_debver}.${_debrel} +pkgrel=@PKGREL@ + +pkgdesc="Language packs for Debian Iceweasel." +arch=('any') +url="http://www.geticeweasel.org/" +license=('MPL') +depends=("iceweasel=${_pkgver}") +source=("${_debrepo}/`debfile ${_debname}`_${_debver}.orig.tar.gz" + "${_debrepo}/`debfile ${_debname}`_${_debver}-${_debrel}.diff.gz" + "${_debrepo}/`debfile ${_debname}`_${_debver}-${_debrel}.dsc") +noextract=($(for lang in ${_langpacks[@]} + do echo $lang.xpi + done)) + +dpkg-source() { + # This will simulate dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc + cd "${_debname}-${_debver}" + patch -p1 -i "${srcdir}/${_debname}_${_debver}-${_debrel}.diff" + cd .. +} + +build() { + cd "${srcdir}" + dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc +} + +_path="/usr/lib/iceweasel-${_pkgver}/extensions" + +# CUT HERE <-- Separates package_*() functions from everything else. + +for lang in ${_langpacks[@]} +do + eval " +package_iceweasel-i18n-$(echo $lang | tr A-Z a-z) () { + install -Dm644 '$srcdir/'*'/upstream/$lang.xpi' \"\$pkgdir\"'$_path/langpack-$lang@firefox.mozilla.org.xpi' +} +" +done + |