2014-01-13 23:08:13 +08:00
|
|
|
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
|
|
|
# Contributors: A Boersma (abveritas) <abveritas@chakra-project.org>
|
2011-11-21 07:52:25 +08:00
|
|
|
|
|
|
|
pkgbase=calligra-l10n
|
2014-12-16 04:00:08 +08:00
|
|
|
pkgver=2.8.7
|
2014-07-09 06:06:13 +08:00
|
|
|
pkgrel=1
|
2014-05-19 06:51:31 +08:00
|
|
|
depends=("calligra-libs>=$pkgver")
|
2011-11-21 07:52:25 +08:00
|
|
|
arch=('any')
|
|
|
|
url="www.calligra-suite.org/"
|
|
|
|
license=('LGPL')
|
2014-01-13 23:08:13 +08:00
|
|
|
makedepends=('cmake'
|
|
|
|
'automoc4'
|
|
|
|
'kdelibs'
|
|
|
|
'docbook-xsl')
|
2014-05-19 06:51:31 +08:00
|
|
|
|
|
|
|
declare -A _languages
|
|
|
|
_languages=(
|
|
|
|
[bs]='Bosnian'
|
|
|
|
[ca]='Catalan'
|
|
|
|
[ca@valencia]='Catalan (Valencia)'
|
|
|
|
[cs]='Czech'
|
|
|
|
[da]='Danish'
|
|
|
|
[de]='German'
|
|
|
|
[el]='Greek'
|
|
|
|
#[en-GB]='English (GB)'
|
|
|
|
#[en-ZA]='English (ZA)'
|
|
|
|
[es]='Spanish'
|
|
|
|
[et]='Estonian'
|
2014-07-09 06:06:13 +08:00
|
|
|
[eu]='Basque'
|
2014-05-19 06:51:31 +08:00
|
|
|
[fi]='Finnish'
|
|
|
|
[fr]='French'
|
|
|
|
[gl]='Galician'
|
|
|
|
[hu]='Hungarian'
|
|
|
|
[it]='Italian'
|
2014-07-09 06:06:13 +08:00
|
|
|
[ja]='Japanese'
|
2014-05-19 06:51:31 +08:00
|
|
|
[kk]='Kazakh'
|
|
|
|
[nb]='Norwegian Bokmal'
|
|
|
|
[nds]='Low Saxon'
|
|
|
|
[nl]='Dutch'
|
|
|
|
[pl]='Polish'
|
|
|
|
[pt]='Portuguese'
|
|
|
|
[pt_BR]='Portuguese (Brasil)'
|
|
|
|
[ru]='Russian'
|
|
|
|
[sk]='Slovak'
|
2014-07-09 06:34:48 +08:00
|
|
|
#[sl]='Slovenian'
|
2014-07-09 06:06:13 +08:00
|
|
|
[sv]='Swedish'
|
2014-12-16 04:00:08 +08:00
|
|
|
[tr]='Turkish'
|
2014-05-19 06:51:31 +08:00
|
|
|
[uk]='Ukrainian'
|
|
|
|
[zh_CN]='Chinese (simplified)'
|
|
|
|
[zh_TW]='Chinese (traditional)'
|
|
|
|
)
|
|
|
|
|
2014-12-16 04:00:08 +08:00
|
|
|
md5sums=('4cb22f814b8c00040246b7d3e16fea29'
|
|
|
|
'70e9b04b66aa74e836a23c1c606d5280'
|
|
|
|
'09011b1829c1eafddb1987080b1e627d'
|
|
|
|
'dfe2b5d1ee93ad60c361cfd01b4f2057'
|
|
|
|
'2400e204e613a9710a09d57a08eb2631'
|
|
|
|
'd8139eb50b743144852e328278d39164'
|
|
|
|
'd17be021229e6ccc84582da889abedb8'
|
|
|
|
'a45b9e10b511c83fd2a49f03dee42241'
|
|
|
|
'd275542a37bf6e696123ff52e2c70345'
|
|
|
|
'743d02e730421d2caa802276f6917a6a'
|
|
|
|
'46e06d980692bdd86f114d16ff71187d'
|
|
|
|
'a8dcfa38b9c3e8ca0eb8fbc68a7b21b8'
|
|
|
|
'20357723a567fddf2fcf12dd399b88a8'
|
|
|
|
'ed20dba78078a127feb206afaa0490cc'
|
|
|
|
'aa141334488455d590b01fc6104e7ea8'
|
|
|
|
'719acbca3e86c5ddc88ab0232d3e973b'
|
|
|
|
'de076e3e38ccc698288420dc719c9357'
|
|
|
|
'0a50e809722ad150dba660bd43b75db7'
|
|
|
|
'5c5f0499d26545e26cdd9a8aa21a5928'
|
|
|
|
'96232bbe66f1ee60a86bcf023670ced8'
|
|
|
|
'd8c7d2da35097e355a139c7a346c5d7a'
|
|
|
|
'd40b53e9266d0381fd6951daae0fbc69'
|
|
|
|
'42dc9dd95b709ebfcb1f00cf69cf094f'
|
|
|
|
'a8d94ba46a914a9b6d63fa71a89ecf8a'
|
|
|
|
'867aa2c3351bd67acecad6a0b4642a4c'
|
|
|
|
'a135128f4afe4125f4e82c166fa9b17d'
|
|
|
|
'ca3546b5449ac81334b9228c88f4172f'
|
|
|
|
'10e5faad6c7ad0b9084978840cc75603'
|
|
|
|
'50a3272af6c6a62bf4f5978832b96181'
|
|
|
|
'e1ec962ac680cd9dce72e48dd9c754e6')
|
|
|
|
|
2011-11-21 07:52:25 +08:00
|
|
|
|
|
|
|
build() {
|
2014-05-19 06:51:31 +08:00
|
|
|
for i in ${pkgname[@]}; do
|
|
|
|
_pkglang=${i#*-}
|
|
|
|
msg ${_pkglang} " compiling..."
|
|
|
|
install -d build/calligra-${_pkglang}
|
|
|
|
pushd build/calligra-${_pkglang}
|
|
|
|
cmake ${srcdir}/calligra-${_pkglang}-${pkgver} \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2014-01-13 23:08:13 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
done
|
2011-11-21 07:52:25 +08:00
|
|
|
}
|
|
|
|
|
2014-05-19 06:51:31 +08:00
|
|
|
_package() {
|
|
|
|
pkgdesc="${_languages[$1]} localization for Calligra"
|
|
|
|
groups=('localization' 'calligra-l10n')
|
2014-01-13 23:08:13 +08:00
|
|
|
|
2014-05-19 06:51:31 +08:00
|
|
|
cd $srcdir/build/calligra-l10n-$1
|
|
|
|
make DESTDIR=$pkgdir install
|
2011-11-21 07:52:25 +08:00
|
|
|
}
|
2014-01-13 23:08:13 +08:00
|
|
|
|
2014-05-19 06:51:31 +08:00
|
|
|
for lang in ${!_languages[@]}; do
|
|
|
|
_pkgname=calligra-l10n-$lang
|
|
|
|
source+=("http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-${lang}-${pkgver}.tar.xz")
|
2014-01-13 23:08:13 +08:00
|
|
|
|
2014-05-19 06:51:31 +08:00
|
|
|
pkgname+=($_pkgname)
|
|
|
|
eval "package_${_pkgname}() {
|
|
|
|
_package $lang
|
|
|
|
}"
|
|
|
|
done
|