diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-01-16 20:28:36 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-01-16 20:28:36 -0200 |
commit | 946e8b080020343fd7b469062c9b42e4845022e4 (patch) | |
tree | cb6c7d2346a3145f273100f43c4b9bbc6cf1e0c4 /libre/icecat-l10n/PKGBUILD.in | |
parent | f95c5f310e0f240dfa4c440a1a6b7c0ac29ffbb6 (diff) | |
download | abslibre-946e8b080020343fd7b469062c9b42e4845022e4.tar.gz abslibre-946e8b080020343fd7b469062c9b42e4845022e4.tar.bz2 abslibre-946e8b080020343fd7b469062c9b42e4845022e4.zip |
icecat-l10n-17.0.1-1: updating version
Diffstat (limited to 'libre/icecat-l10n/PKGBUILD.in')
-rw-r--r-- | libre/icecat-l10n/PKGBUILD.in | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/libre/icecat-l10n/PKGBUILD.in b/libre/icecat-l10n/PKGBUILD.in new file mode 100644 index 000000000..90c901e31 --- /dev/null +++ b/libre/icecat-l10n/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 + |