diff options
author | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-05-24 13:11:48 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-05-24 13:11:48 -0300 |
commit | 960a229bf710546037d674ca530b0a4b6a857abb (patch) | |
tree | 25b0f06dae479376e989bb751f94c3077e4b9e6f /libre/iceape-i18n/PKGBUILD.in | |
parent | 22a405b922ffb0604e0a0e249a52c1387fc66852 (diff) | |
download | abslibre-960a229bf710546037d674ca530b0a4b6a857abb.tar.gz abslibre-960a229bf710546037d674ca530b0a4b6a857abb.tar.bz2 abslibre-960a229bf710546037d674ca530b0a4b6a857abb.zip |
iceape-i18n-2.7.4.2-1: Langpacks for Iceape
Diffstat (limited to 'libre/iceape-i18n/PKGBUILD.in')
-rw-r--r-- | libre/iceape-i18n/PKGBUILD.in | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/libre/iceape-i18n/PKGBUILD.in b/libre/iceape-i18n/PKGBUILD.in new file mode 100644 index 000000000..6891b2672 --- /dev/null +++ b/libre/iceape-i18n/PKGBUILD.in @@ -0,0 +1,64 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: fauno <fauno@kiwwwi.com.ar> +# Contributor: Figue <ffigue@gmail.com> +# Contributor: André Silva <andre.paulista@adinet.com.uy> +# 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=iceape-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 Iceape." +arch=('any') +url="http://packages.debian.org/source/sid/iceape" +license=('MPL') +depends=("iceape=$_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/iceape-${_pkgver}/extensions" + +# CUT HERE <-- Separates package_*() functions from everything else. + +for lang in ${_langpacks[@]} +do + eval " +package_iceape-i18n-$(echo $lang | tr A-Z a-z) () { + install -Dm644 '$srcdir/'*'/upstream/$lang.xpi' \"\$pkgdir\"'$_path/langpack-$lang@firefox.mozilla.org.xpi' +} +" +done + |