diff options
Diffstat (limited to 'libre/iceweasel-l10n/PKGBUILD')
-rw-r--r-- | libre/iceweasel-l10n/PKGBUILD | 251 |
1 files changed, 120 insertions, 131 deletions
diff --git a/libre/iceweasel-l10n/PKGBUILD b/libre/iceweasel-l10n/PKGBUILD index 0f3cb050a..1eb6bb91d 100644 --- a/libre/iceweasel-l10n/PKGBUILD +++ b/libre/iceweasel-l10n/PKGBUILD @@ -1,27 +1,24 @@ # Maintainer: André Silva <emulatorman@parabola.nu> -# Maintainer: Márcio Silva <coadde@lavabit.com> +# Contributor: Márcio Silva <coadde@parabola.nu> # Contributor: 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=iceweasel -_debver=26.0 -_debrel=deb1 +_debver=27.0 +_debrel=deb2 _debrepo=http://ftp.debian.org/debian/pool/main/ debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; } -_langpacks=(ach af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en-GB en-ZA eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk km kn ko ku lg lij lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK te th tr uk vi zh-CN zh-TW zu) +_langpacks=(ach af an ar as ast be bg bn-BD br bs ca cs csb cy da de el en-GB en-ZA eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk km kn ko lij lt lv mai mk ml mr nb-NO nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl sq sr sv-SE ta te th tr uk vi xh zh-CN zh-TW) pkgbase=iceweasel-l10n -pkgname=($(for lang in ${_langpacks[@]} - do echo $pkgbase-$lang | tr A-Z a-z - done)) +pkgname=( + $(for lang in ${_langpacks[@]}; do + echo $pkgbase-$lang | tr A-Z a-z + done) +) epoch=1 pkgver=$_debver.$_debrel pkgrel=1 @@ -33,134 +30,126 @@ license=('MPL' 'GPL') depends=("iceweasel-libre>=$epoch:$pkgver") makedepends=('unzip' 'zip') source=('region.properties') -for lang in ${_langpacks[@]} -do - source+=("${_debrepo}/`debfile ${_debname}`-l10n-$(echo $lang | tr A-Z a-z)_${_debver}-${_debrel#deb}_all.deb") +for lang in ${_langpacks[@]}; do + source+=("${_debrepo}/`debfile ${_debname}`-l10n-$(echo $lang | tr A-Z a-z)_${_debver}-${_debrel#deb}_all.deb") done -_path="/usr/lib/iceweasel/browser/extensions/" +_path=usr/lib/iceweasel/browser/extensions -build() { - cd "${srcdir}" - for f in *.deb - do - bsdtar xf $f - bsdtar xf data.tar.xz +prepare() { + cd $srcdir + for f in *.deb; do + bsdtar xf $f + bsdtar xf data.tar.xz done - cd $srcdir/$_path + mv $_path/* . + rm -r {control.tar.gz,data.tar.xz,debian-binary,etc,usr} + rm -r *.deb - for i in ${_langpacks[@]} - do - cd $srcdir/$_path - unzip -q langpack-$i@iceweasel.mozilla.org.xpi -d $i - rm langpack-$i@iceweasel.mozilla.org.xpi - install -Dm644 $srcdir/region.properties $i/browser/chrome/$i/locale/browser-region - cd $i - zip -q -r $srcdir/$_path/langpack-$i@iceweasel.mozilla.org.xpi . + for lang in ${_langpacks[@]}; do + unzip -q langpack-$lang@iceweasel.mozilla.org.xpi -d $lang + rm langpack-$lang@iceweasel.mozilla.org.xpi + install -Dm644 $srcdir/region.properties $lang/browser/chrome/$lang/locale/browser-region + cd $lang + zip -q -r langpack-$lang@iceweasel.mozilla.org.xpi . + mv langpack-$lang@iceweasel.mozilla.org.xpi $srcdir + cd .. + rm -r $lang done - - cd $srcdir } -for lang in ${_langpacks[@]} -do - eval " -package_iceweasel-l10n-$(echo $lang | tr A-Z a-z)() { - replaces=(firefox-i18n-$(echo $lang | tr A-Z a-z) iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z)) - conflicts=(firefox-i18n-$(echo $lang | tr A-Z a-z) iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z)) - provides=(firefox-i18n-$(echo $lang | tr A-Z a-z) iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z)) - install -Dm644 \"\$srcdir$_path/langpack-$lang@iceweasel.mozilla.org.xpi\" \"\$pkgdir$_path/langpack-$lang@iceweasel.mozilla.org.xpi\" -} -" +for lang in ${_langpacks[@]}; do + eval " + package_iceweasel-l10n-$(echo $lang | tr A-Z a-z)() { + replaces=(firefox-i18n-$(echo $lang | tr A-Z a-z) iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z)) + conflicts=(firefox-i18n-$(echo $lang | tr A-Z a-z) iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z)) + provides=(firefox-i18n-$(echo $lang | tr A-Z a-z) iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z)) + install -Dm644 \"\$srcdir/langpack-$lang@iceweasel.mozilla.org.xpi\" \"\$pkgdir/$_path/langpack-$lang@iceweasel.mozilla.org.xpi\" + } + " done md5sums=('a4593936bf1c7a9ec9368ff249f9cc56' - '1034ab86bc45115f9ef614b85cfcdc19' - '4c34d69b741bf1f33648b77c3322b2da' - 'aacb59b72dd27ed06881cd01d81fa3a6' - 'e64213a5fb34e8d53f13200f7b729c82' - '0a92bec210e3f8aff64a81fda8780cf3' - 'd0f290128bbf2a4383e982bf4e686b96' - '3f008ae077bc54cb948cc6a08a78a0f6' - '84fde08dd4da53def0491960a908f9ff' - '2494d4cba834bf49d2e8f0ac6e86dec0' - '328c526e9c41f32c5df0916d8633b8e7' - '6bbd86c0180764b59e9762f7b33d5db3' - 'd4c2de19670d608f16158908ae980e0d' - '36c76ce311208ad2fcc19a06f02c4d52' - '1de6bdd14302fff21d62472bf172e5bf' - '8aceec26df106e67c4f19589fcef7588' - 'edd2c8f8c3f6df1cc819cf8542b76196' - '89b3ab8adace5efd25a92a091e3f6bac' - 'fefbecae93e912447a8119115930f7d5' - '236f1fc25ff6e104ca61bcb48342710f' - '7a839afc851fcb2e3e630090586245ca' - '12fea0abba7caf75da8ba7bcab99728a' - '4779ce690c5f45c138ec36fff6360bed' - 'e3b767cfb3318fc85b96d894ed4cdec5' - '2a2d96b793f652520de146f9dc24755c' - '17120e297fc252e97e0abd3ff1c2a10b' - '2259d8189d34915f32ab31b4d53d6e87' - 'b7aa28e93264aea26595fd98d7982abe' - '01873dd70986ca857cf5e00b85a22adf' - '2f88825d3925eb1bb21a0ad092308edd' - '485e799de41f283c937cf6055e2f5523' - 'f19e860a2d5435ee61d48ed328494212' - 'd64ac8e776f808d61d2c2c4678124294' - '74b6666fabaa8e270356eaa7a78b371c' - '36304846e8a1ae604b29bdfb6b0c12ba' - '0cdfde7a083cca4308bd23f7203bbe7b' - '74a2103823f0f9a6b0bc614bd46272ca' - 'e088239e0f15ad5d23099ab2cad19d92' - '16b9e9814f154ffddd8d9612bdf9f8d8' - '6a2aca46eabd374d80106328fea6e340' - 'f680470cc3d6fc87276a9b17d6841ae2' - '6964eef1fd96fa810de34f32844f31fc' - '223e82aa9efb2376f44b7601e3ddbeae' - 'd821062dd74179309981c18542412e2e' - '7128e964f3d01da8967c5e57b2d76b93' - '2cc4b1a603c29450d19dd98c15093fec' - '595e155b3d15432d5de2c5962feea581' - '9110dc57eff2d7cab6d7eeeb11f8e98c' - '0503d87f660e9e86be6a3c32ed73e65c' - 'e19e8f1702232f5d77ec0624071ccd7d' - '5618dcfcc50831b8efccd0c0c093dfc2' - '1020905e47d89bf40545a3bbdf52951b' - '6d187dc8a4ac042e7c871134ca86b2c0' - '36d5a7066f518c7db7464320e2b86fc8' - '9654556b5c1a74a4ffe21091edbe26df' - 'd5e6d93aa7f35e052a24b612730a70ba' - 'b5f0df97c10290c555f3002655f5bfe6' - 'f1f4d8897422ed5328e1b2325a1f1198' - '3bfa9cbe5abd0ea40c70e16cd2f5c24c' - 'f27983d5cf79aa478409c33dae988ce2' - 'cbf40cf391dd5bbac1665a8180f81620' - '69ffe26a603ddc25bc7d9e56a70b6399' - '90d6449031ae5e06acd8cffdb0d01e05' - '326ad24d994971a2405dcb1532cce6bf' - '5ced14adbdddd81bda4a9cd2ddd92ee4' - 'b86565c39ef253d51a39bc851e7b354d' - '915f6058a855a59cddeb027d2a518dce' - '58f8bfcd609626a2a76ff22206e2033f' - '9b0be982d506f060319bd3c41aee0896' - '65cd9c3cf11f1937be0a1dc0802f3d1a' - '454413e97a0d19ba018ebc60e2502d2b' - '45b8f8cdb117eca4eaaa1d6b449569f5' - 'f10ef03517f558c15fca7db4d9e50ad1' - '5a3465027d47bd30da6a77f92e94fd08' - '56ecb69e73f7d3447019e6f3b23aebba' - 'c02e08ff0732233738fe3af877513a34' - '3a4fbbfeb24cff45933c53dac27d6fdc' - 'a2245eca0bca1d615e031e82734b8e43' - '62f4ea1010191b721aa8b2d6130a3c1e' - '45bd1ab2f164630366ce6004d0070f55' - '1cce5000ad1146b1cfc5ff9cd5db175b' - 'b9283671cf87329296b62f529e8e7709' - '17fa69f4617ce5706fe11c54d5a737a8' - 'cfd0b7b1215f13cfcd8eb1d0ab335aa4' - '6ec5cd2855ae69f8998de2305109bd91' - '4b121cb7694f5962c99c479a26442905' - '6aa873082d24918f489431be9be7300a' - 'f36aafb79f6120698f9b890c52dbd301' - 'ff581801e9a9663e4562a5d28d4cbe2d') + 'de575fedef8fd6b811334d8b9c082479' + '36043f6b423fd8c0a378c2e5fcb3a3c1' + '306ef53afb18ffa3ec57feb0063ab433' + '9af26b5177f1b20cb682299345ad1a87' + '21d7586f0dcc740835c9d3a6e9cee397' + '94c11e19db72eea7a5630bbf6c4a992d' + '86f1a539a8f9af7ea81a63f11a882b70' + 'c62fdd3ce834337d43c4e59af3b87553' + '0678ff6935296e17e36c40b3fc17ac96' + '680ff4dbae9ce0b9f1bcd092169e6a34' + 'dc8e478e69b1ee22126cb6addc744fe5' + 'a513f4af7f608347225cd4180e89dee6' + '17d1e0cd0c7023461fc5dde7b97ee4b1' + 'c08f2cd5a29737b20ecc2f7c2892bd74' + '8ff5f9ea03c3fff51142df8c52626b22' + 'f8a42eb22e2192793a85112adb8e2278' + 'f1b221697547feff3e69889a9e9dd1b4' + '1c106f032476d2443b368e52d9e1bc69' + 'dbf5e2a01c84e18dc19ed9be5e12920b' + '9d6e6b497af88a0b5c44845adf275f9d' + 'aeb7f058aabd5d7d4e05f8e7917bd59b' + '4612bf235fdfd328e176b3e682e61072' + 'ebf5aefb15834234fbac6a4310b8f8ab' + '7591125ee445836f9e1247f5a7f6a474' + '410d090d68240f1f304ff94c4847817e' + '96a9dbd806a336936a4642ae95d12a26' + '4924dd568df7dc0428f3458758eadca1' + '62d46770f79074fc90ce4c1e4f5e5169' + 'c57d361eaa5d0fb90e872dd8f1d3fce1' + 'dbbba15f93f960c19bab63599b8f771c' + '0025e4609f5d1f72bf784f35d42934a9' + '638306adb405c506baa2728a00237d50' + '7ae2cbe9e2888b95a513eb8238e6e5d2' + '8b560d4ae6f62bb64d8fa8c1a62abe27' + '52bd4641b6066a2a0596c7b4f64b25c1' + '9293f6d596e7586c7955cc0d6d71dbbb' + 'a634db784e4bb6efda49e2508d58c96c' + 'ebf52ea0d70699f5d2651054b975dac2' + '6fbf98e9d4477d3355369bbf9c33c9aa' + 'a0c6cb16be15cdca746f52fe07af0ab8' + '934f4c14a9242228da3322bd844f001b' + '29df15b3dad1764cb236e1913adb6895' + '8f4bd42afb2b0042300b50dbd575ed76' + '9f1d8951c50f6dd133089824db8e811b' + 'df683c5a6b64226311f1158e1cfd7387' + 'ddf59c931fb1d11337dfb30796172222' + '3c69e0fa5c10427c9d95b26fecb73366' + 'fdf86cfbcf7e6084f01fda86b3907d68' + '4f602efbc5ee7dbcf315b7c00c5a9824' + '30012df56189ba8de7a2be3089ac7037' + '90660c135667807a35d5a424a14a03c7' + '39e8128c27e68f03db07ec9d3a4661f4' + '34c9463b7bd4000cb6c2178568ea5d57' + 'd6008349e2b26e11b4bf29d182236d15' + '1d51c2c91f10f459227a2c4e16e2cf52' + '59b1f8e007070d0ac598cc8782cc775d' + '23f7deb8fbbf8b74426299cf239e83bd' + '81ec70e9b9fdf887d00c9422d94803d0' + 'b4aea1741607118d5d128df88181c363' + '52dbb00c5e7adcdee972b2daf689401b' + 'a180a40f9651e8ca3ebdb3001fce6fa7' + 'fed061bc838b9eec2e1c187e64b93176' + '09b9eae4bdfbc1f7f4939f01a325bb40' + '337f7aaf9a2d7b94a9c33648a9734287' + '647abcd745c18a80e5187bc28b1b67b8' + 'b9c5f0043fe7c26e23ba42450afb57b6' + '6c9bb760adb3ae75ddb969c595649732' + '70917dca185cf1f150df72eb848b6315' + 'cc16dd7b22855338055429a3fd1a2367' + '236a36024c7660e7ec0ab2c7931b9ea0' + '471e98027910bcbfba3957df1e6a3c4a' + 'cea62f763650bb50e770055288e3bd7c' + '0f4abd8240ecc996fd434b0139a9996b' + 'cec783e074568d1c750ee88a2bbb003f' + '437d59dd764666147bfe5d27b0848b94' + 'f05ac803378d996351a277ebcc99e0e2' + '13ddcd0d7c10e381458d5563476d53c3' + 'f33a663b92b61fa02c28b881deae2376' + '4c4b58d49295b0b873f265ffa369a27d' + '67e54d3c0058263192700617500045e7' + '1022e9f23438b96df2f0dd054ff195b0' + '8274a6aafc5b097ab0659675d66b87c6') |