desktop/calligra-l10n/PKGBUILD

347 lines
14 KiB
Bash

# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: A Boersma (abveritas) <abveritas@chakra-project.org>
pkgbase=calligra-l10n
pkgname=('calligra-l10n-bs'
'calligra-l10n-ca'
'calligra-l10n-ca@valencia'
'calligra-l10n-cs'
'calligra-l10n-da'
'calligra-l10n-de'
'calligra-l10n-el'
'calligra-l10n-es'
'calligra-l10n-et'
'calligra-l10n-eu'
'calligra-l10n-fi'
'calligra-l10n-fr'
'calligra-l10n-gl'
'calligra-l10n-hu'
'calligra-l10n-it'
'calligra-l10n-kk'
'calligra-l10n-nb'
'calligra-l10n-nds'
'calligra-l10n-nl'
'calligra-l10n-pl'
'calligra-l10n-pt'
'calligra-l10n-pt_BR'
'calligra-l10n-ru'
'calligra-l10n-sk'
'calligra-l10n-sl'
'calligra-l10n-sv'
'calligra-l10n-uk'
'calligra-l10n-zh_CN'
'calligra-l10n-zh_TW')
pkgver=2.8.0
pkgrel=1
arch=('any')
url="www.calligra-suite.org/"
license=('LGPL')
makedepends=('cmake'
'automoc4'
'kdelibs'
'docbook-xsl')
source=("http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-bs-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-ca-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-ca@valencia-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-cs-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-da-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-de-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-el-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-es-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-et-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-eu-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-fi-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-fr-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-gl-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-hu-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-it-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-kk-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-nb-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-nds-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-nl-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-pl-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-pt-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-pt_BR-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-ru-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-sk-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-sl-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-sv-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-uk-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-zh_CN-${pkgver}.tar.xz"
"http://download.kde.org/stable/calligra-${pkgver}/calligra-l10n/calligra-l10n-zh_TW-${pkgver}.tar.xz")
sha512sums=('3448b18181632d4a60fb3ee183618ca3ab7f5ce707175ae46f74e0bf63d8d7bf892b5c07e0a43a58992f5355762a38086cb9bd6e5c2b8541512056d4fdb66c2b'
'6dfba3874092a405541c1ceaf9be94ef32b3b42a831280d2c29def8aa99072fd45faa290092e2e90bb51cc4af58b82a98d7c6c86cd25e083d9afbf6bfc2cda3b'
'4895e2e235f454c4bc761c00953998bbebfb9fd5d42633bd34d42c1381ad4302a7689d8ebfee46f2cc0d53d3e5fb5c4fb35d55e5419dfd750f65471e7e24e1c8'
'07d8d14db7eae706d8c83ea28e6308420baf912456ea1dafeee3af6224f0216721ec0bd1ee2b1cb92c280b01f5fc9d5cca40bdc6090e806afa50892c7c046d45'
'75088d5b5d82cfe382472c76c2a28ca86746ad4c2b1f9334ac65180ab1cc84f9eb36acaed7db7236e12aca168f6139e608f68cc189b2a10c4d5dc0f51e4cf2c2'
'1426ae9f5c57ba3a20a085275b8aed0d1230a7673b02829436bc9b2da97fdf1af7a1db83c82218104465fa4085d4f1061e1e710f659bae50b40581ac5c7c300a'
'683a401b0ceb56f6213bb8651d9a46790b84f0dcb28fd5e4796d886c717e8c89b605d83b27b5c9a3174de77915b3ab3e7f2c146e509de9c21ea7eeb2a9fef62c'
'2d23ec2d2ebe1676e85e11bd2b0bda7c8cb5a3b148c15d9ee6a1fad49df0372e5aa99e270f7dd73b34829639b410ccc0d78a04310677121eafe3ebfbca442914'
'a93e979949e97742be171259312f83dbfdf714367fac2331d8f3f290dc14e2136e6c9195933f33507f55ed2f498cf1bacf66cda4e3c0872cd1492164e1b3fb8b'
'40109a18fefbb19ff07c9ba043f3302470867ca99d8c595d9dc14f6eb9bf9d3ade13dc006b42b7c2be24cd7f213081d6799b312ea9d2ed1e6f2b8f68c0795b95'
'0b182043ce526e82aea216c3edb770862036ed6c54b3fa2f743f87dad90abc05a6131f421a84b709a5de1de11a6ba581c265b80e4b29ef8bcd0630b805bf3be4'
'1ca5b9a9ace068ccbb1a450b5bb16f3913d77cab5cc8bfdfb7b6e6f1d732801c822113a2815b5d4c8be27cc60aee70651f4aff10329b85ef7075536a01c9dba3'
'bbc351709b9b74a5f8fb9b7af3e8117ca5545957e4ce18ac92522e2ade10a6363f8ddc5af3b99fcc8689be59a5df6fe50106747004480a27fb3abcbbbeb28555'
'75c59377204aaaf5a8d4a56ef04b3dacb72fe4d43fbeb616b0e8df180d87f42119f1fad0f02a3a2979d5b1bd292d594c9c4e97b868999b0f30c76e540e6ead22'
'040431161daced99d9cb5bbe9d7fb3f2e0d57c5e5743014752802a360b6b4f3816d3d023adb6768779c568a250047971375094dad13a042589d10bf3790b3a3e'
'21c6181b3b26a876ddefe6a06cf5d95b604caa4bde9c007db026d0664a551e866859744d2ba2d65a9a4276ff7c43253c3f82c53d31434c1f03189e6a31508108'
'728fd9d09af311ecd5e9fa8f4a8691633a4cc936b295892b67bcd7ec574d070f86719af5915af7c9c97f730a1b1db9bc69bc2da2755abcc7664972942e527981'
'dde3e7e676b15a86041b8d995d21cd30055e03536ede2e63bfa0d963edd5f94025321840b5cd8d4aff3dd2822a4ff3732e9993a2d887484d0067369fd1b429fa'
'6acfd36e14e45124ce90dda732f18081f5aa3aaaf866de3139caf5f19b400dfbdf981ba6110809551fb79ffdb52f3c733123c949b92180075987beac24362836'
'bea9dd0ab814e55b43c94fcdbe0f771129b047c579d26533b301a819effcb426cee53e6db1ca0153574da0b6ef486fb6690179a930cb3d70491f41913518108d'
'fef0c5f3793625df8fa57fcdeafcb7daebb72a4a44913e6130d0a0bd7ab16134b44240bef1d30fc3eb0bbb94c3014a831cb86c01326f22b3db3b70828ba5dff6'
'dd0f35a90b4a4afcd94f545b3ac36b9a37f0e6224e89848cae6b466b6b8a497c20cbebe1a607e45effb7cfee609ea0b665b0d84e9fe53d6ed22743738778083f'
'd263e7a48463a881ffa40f0e3d480ebaebcd810950c9af3ad149720dd4665eb25ad1897d7cf32ae27eeca13734d9457ab8f6a0cb459b5e18b5f4b7222564d5ef'
'2a1ea41b06fd8a435674c718dbb7e390fa94e0f6573a8594f2f137c2bf9e5960b59c7259bf31372eb37aa4be0f19d961481a65cedf527d9b06266943b2c827aa'
'69a2cb713eaf2f5d1b34edb1419b9799ab53836c8508cd55305ed5b2b045715d871979090f4b9aeb05cb281e7f13dd6f1461c426bdfd821f5c49b7ecf0372f3d'
'176090d6eea41d6e81cf0e24990706c152c80092aa7525d20d7782d2d90ceb435308736fcbb177450bdc635eb602e3037a1569496c4d1fa4073e1d22e6b28e77'
'7329d2687530b1ef1f838ca521e04afe71b1b7e3d921a6fa161233b0d52c329aafcacb5651e121f566b06a474e9e49014459ca56cbc331db5f32e37ae0a392ef'
'b871271106004c6ab686c3ea143e8d998190e5829418ba6eec762620cbded02e38ba53cb7462d623ddaf5b2b5947efab0c1d0d9e1486c45f0364f713ce5bd78c'
'5a41009ca4926ad625d6173cc7ca1bc6adc641414a7997df1ca3e357ec1183ff1a975f6b437e6adbafa902052f76a54793ec5a27bab48404e99ae40dde2a72da')
build() {
cd $srcdir
langs="bs ca ca@valencia cs da de el es et eu fi fr gl hu it kk nb nds nl pl pt pt_BR ru sk sl sv uk zh_CN zh_TW"
for lang in $langs; do
install -d build/${lang}
pushd build/${lang}
cmake ${srcdir}/calligra-l10n-${lang}-${pkgver} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr
make
popd
done
}
package_calligra-l10n-bs() {
pkgdesc=('Bosnian localization for Calligra')
categories=('localization')
cd $srcdir/build/bs
make DESTDIR=$pkgdir install
}
package_calligra-l10n-ca() {
pkgdesc=('Catalan localization for Calligra')
categories=('localization')
cd $srcdir/build/ca
make DESTDIR=$pkgdir install
}
package_calligra-l10n-ca@valencia() {
pkgdesc=('Catalan (Valencian) localization for Calligra')
categories=('localization')
cd $srcdir/build/ca@valencia
make DESTDIR=$pkgdir install
}
package_calligra-l10n-cs() {
pkgdesc=('Czech localization for Calligra')
categories=('localization')
cd $srcdir/build/cs
make DESTDIR=$pkgdir install
}
package_calligra-l10n-da() {
pkgdesc=('Danish localization for Calligra')
categories=('localization')
cd $srcdir/build/da
make DESTDIR=$pkgdir install
}
package_calligra-l10n-de() {
pkgdesc=('German localization for Calligra')
categories=('localization')
cd $srcdir/build/de
make DESTDIR=$pkgdir install
}
package_calligra-l10n-el() {
pkgdesc=('Greek localization for Calligra')
categories=('localization')
cd $srcdir/build/el
make DESTDIR=$pkgdir install
}
package_calligra-l10n-es() {
pkgdesc=('Spanish localization for Calligra')
categories=('localization')
cd $srcdir/build/es
make DESTDIR=$pkgdir install
}
package_calligra-l10n-et() {
pkgdesc=('Estonian localization for Calligra')
categories=('localization')
cd $srcdir/build/et
make DESTDIR=$pkgdir install
}
package_calligra-l10n-eu() {
pkgdesc=('Basque localization for Calligra')
categories=('localization')
cd $srcdir/build/et
make DESTDIR=$pkgdir install
}
package_calligra-l10n-fi() {
pkgdesc=('Finnish localization for Calligra')
categories=('localization')
cd $srcdir/build/fi
make DESTDIR=$pkgdir install
}
package_calligra-l10n-fr() {
pkgdesc=('French localization for Calligra')
categories=('localization')
cd $srcdir/build/fr
make DESTDIR=$pkgdir install
}
package_calligra-l10n-gl() {
pkgdesc=('Galician localization for Calligra')
categories=('localization')
cd $srcdir/build/gl
make DESTDIR=$pkgdir install
}
package_calligra-l10n-hu() {
pkgdesc=('Hungarian localization for Calligra')
categories=('localization')
cd $srcdir/build/hu
make DESTDIR=$pkgdir install
}
package_calligra-l10n-it() {
pkgdesc=('Italian localization for Calligra')
categories=('localization')
cd $srcdir/build/it
make DESTDIR=$pkgdir install
}
package_calligra-l10n-kk() {
pkgdesc=('Kazakh localization for Calligra')
categories=('localization')
cd $srcdir/build/kk
make DESTDIR=$pkgdir install
}
package_calligra-l10n-nb() {
pkgdesc=('Norwegian Bookmal localization for Calligra')
categories=('localization')
cd $srcdir/build/nb
make DESTDIR=$pkgdir install
}
package_calligra-l10n-nds() {
pkgdesc=('Low Saxon localization for Calligra')
categories=('localization')
cd $srcdir/build/nds
make DESTDIR=$pkgdir install
}
package_calligra-l10n-nl() {
pkgdesc=('Dutch localization for Calligra')
categories=('localization')
cd $srcdir/build/nl
make DESTDIR=$pkgdir install
}
package_calligra-l10n-pl() {
pkgdesc=('Polish localization for Calligra')
categories=('localization')
cd $srcdir/build/pl
make DESTDIR=$pkgdir install
}
package_calligra-l10n-pt() {
pkgdesc=('Portugese localization for Calligra')
categories=('localization')
cd $srcdir/build/pt
make DESTDIR=$pkgdir install
}
package_calligra-l10n-pt_BR() {
pkgdesc=('Brazilian Portugese localization for Calligra')
categories=('localization')
cd $srcdir/build/pt_BR
make DESTDIR=$pkgdir install
}
package_calligra-l10n-ru() {
pkgdesc=('Russian localization for Calligra')
categories=('localization')
cd $srcdir/build/ru
make DESTDIR=$pkgdir install
}
package_calligra-l10n-sk() {
pkgdesc=('Slovak localization for Calligra')
categories=('localization')
cd $srcdir/build/sk
make DESTDIR=$pkgdir install
}
package_calligra-l10n-sl() {
pkgdesc=('Slovenian localization for Calligra')
categories=('localization')
cd $srcdir/build/sl
make DESTDIR=$pkgdir install
}
package_calligra-l10n-sv() {
pkgdesc=('Swedish localization for Calligra')
categories=('localization')
cd $srcdir/build/sv
make DESTDIR=$pkgdir install
}
package_calligra-l10n-uk() {
pkgdesc=('Ukrainian localization for Calligra')
categories=('localization')
cd $srcdir/build/uk
make DESTDIR=$pkgdir install
}
package_calligra-l10n-zh_CN() {
pkgdesc=('Simplified Chinese localization for Calligra')
categories=('localization')
cd $srcdir/build/zh_CN
make DESTDIR=$pkgdir install
}
package_calligra-l10n-zh_TW() {
pkgdesc=('Traditional Chinese localization for Calligra')
categories=('localization')
cd $srcdir/build/zh_TW
make DESTDIR=$pkgdir install
}