205 lines
6.6 KiB
Bash
205 lines
6.6 KiB
Bash
|
# Template file for 'kde-l10n'
|
||
|
pkgname=kde-l10n
|
||
|
version=4.14.3
|
||
|
revision=1
|
||
|
build_style=meta
|
||
|
hostmakedepends="cmake qt-qmake automoc4 perl"
|
||
|
makedepends="kdelibs-devel qt-devel phonon-devel"
|
||
|
noarch=yes
|
||
|
homepage="http://i18n.kde.org"
|
||
|
short_desc="KDE 4 localization"
|
||
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
||
|
license="GPL-2, LGPL-2, FDL"
|
||
|
create_wrksrc=yes
|
||
|
configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release"
|
||
|
|
||
|
_languages=(
|
||
|
'ca "Catalan"'
|
||
|
'ga "Irish"'
|
||
|
'cs "Czech"'
|
||
|
'gl "Galician"'
|
||
|
'pt "Portuguese"'
|
||
|
'tr "Turkish"'
|
||
|
'lv "Latvian"'
|
||
|
'lt "Lithuanian"'
|
||
|
'pa "Panjabi"'
|
||
|
'engb "British English"'
|
||
|
'pl "Polish"'
|
||
|
'hr "Croatian"'
|
||
|
'de "German"'
|
||
|
'hu "Hungarian"'
|
||
|
'hi "Hindi"'
|
||
|
'he "Hebrew"'
|
||
|
'uk "Ukrainian"'
|
||
|
'mr "Marathi"'
|
||
|
'ug "Uighur; Uyghur"'
|
||
|
'el "Greek"'
|
||
|
'is "Icelandic"'
|
||
|
'it "Italian"'
|
||
|
'ia "Interlingua"'
|
||
|
'ar "Arabic"'
|
||
|
'eu "Basque"'
|
||
|
'et "Estonian"'
|
||
|
'id "Indonesian"'
|
||
|
'cavalencian "Valencian Catalan"'
|
||
|
'ru "Russian"'
|
||
|
'nl "Dutch"'
|
||
|
'nn "Norwegian Nynorsk"'
|
||
|
'nb "Norwegian Bokmal"'
|
||
|
'es "Spanish; Castilian"'
|
||
|
'ro "Romanian"'
|
||
|
'zhtw "Chinese Traditional"'
|
||
|
'fr "French"'
|
||
|
'bg "Bulgarian"'
|
||
|
'wa "Walloon"'
|
||
|
'fa "Persian"'
|
||
|
'bs "Bosnian"'
|
||
|
'fi "Finnish"'
|
||
|
'da "Danish"'
|
||
|
'ptbr "Brazilian Portuguese"'
|
||
|
'ja "Japanese"'
|
||
|
'kk "Kazakh"'
|
||
|
'sr "Serbian"'
|
||
|
'ko "Korean"'
|
||
|
'sv "Swedish"'
|
||
|
'km "Central Khmer"'
|
||
|
'sk "Slovak"'
|
||
|
'sl "Slovenian"'
|
||
|
'zhcn "Chinese Simplified"'
|
||
|
'nds "Low Saxon"'
|
||
|
)
|
||
|
|
||
|
_get_srcname() {
|
||
|
# helper function used to determine the correct source package name
|
||
|
# to handle special cases where the package name doesn't
|
||
|
# equal the name of the source package
|
||
|
_locale=$1
|
||
|
if [ "$_locale" == "zhcn" ];
|
||
|
then
|
||
|
_srcname="kde-l10n-zh_CN-${version}"
|
||
|
elif [ "$_locale" == "cavalencian" ];
|
||
|
then
|
||
|
_srcname="kde-l10n-ca@valencia-${version}"
|
||
|
elif [ "$_locale" == "zhtw" ];
|
||
|
then
|
||
|
_srcname="kde-l10n-zh_TW-${version}"
|
||
|
elif [ "$_locale" == "ptbr" ];
|
||
|
then
|
||
|
_srcname="kde-l10n-pt_BR-${version}"
|
||
|
elif [ "$_locale" == "engb" ];
|
||
|
then
|
||
|
_srcname="kde-l10n-en_GB-${version}"
|
||
|
else
|
||
|
_srcname="kde-l10n-${_locale}-${version}"
|
||
|
fi
|
||
|
echo "$_srcname"
|
||
|
}
|
||
|
|
||
|
do_configure() {
|
||
|
for _lang in "${_languages[@]}";
|
||
|
do
|
||
|
_locale=${_lang%% *}
|
||
|
srcname=$(_get_srcname $_locale)
|
||
|
workdir="${wrksrc}/${srcname}"
|
||
|
cd "$workdir"
|
||
|
cmake . $configure_args
|
||
|
done
|
||
|
}
|
||
|
|
||
|
do_build() {
|
||
|
for _lang in "${_languages[@]}";
|
||
|
do
|
||
|
_locale=${_lang%% *}
|
||
|
srcname=$(_get_srcname $_locale)
|
||
|
workdir="${wrksrc}/${srcname}"
|
||
|
cd "$workdir"
|
||
|
make
|
||
|
done
|
||
|
}
|
||
|
|
||
|
do_install() {
|
||
|
:
|
||
|
}
|
||
|
|
||
|
for _lang in "${_languages[@]}"; do
|
||
|
_locale=${_lang%% *}
|
||
|
_pkgname=kde-l10n-${_locale}
|
||
|
|
||
|
depends+=" ${_pkgname}>=${version}"
|
||
|
srcname=$(_get_srcname $_locale)
|
||
|
distfiles+=" http://download.kde.org/stable/${version}/src/kde-l10n/${srcname}.tar.xz"
|
||
|
|
||
|
eval "${_pkgname}_package() {
|
||
|
_pkgtmpl $_lang
|
||
|
}"
|
||
|
done
|
||
|
|
||
|
_pkgtmpl() {
|
||
|
_locale="$1"
|
||
|
_language="$2"
|
||
|
depends="kdelibs>=${version}"
|
||
|
short_desc="${_language} (${_locale}) localization files for KDE4"
|
||
|
noarch=yes
|
||
|
pkg_install() {
|
||
|
srcname=$(_get_srcname $_locale)
|
||
|
workdir="${wrksrc}/${srcname}"
|
||
|
cd "$workdir"
|
||
|
make DESTDIR=$PKGDESTDIR install
|
||
|
}
|
||
|
}
|
||
|
|
||
|
checksum="
|
||
|
1b54344202f7f04f9083d2b64229668eb1cab5543df201693a96df92b9936f11
|
||
|
adb5661faa1a4391019e6442afa118493959f6d532491fd07f2e138999306e2e
|
||
|
9681fdaae36744242e8a469e03bdab61a6481fbeec12c58c926ea19bf04d564e
|
||
|
e57994b0ebcbe321c7fce062ec1fc4bfa365079e2db6cd422c9a620710a9a402
|
||
|
96490df8ca060b3f99fee750b53aff0acd93453ee9caf41a9d2f5ef2322964fd
|
||
|
907b3dacf5b49565aff422a2fc5eb5d48add3cfc63f327f5322a82c1fc756c97
|
||
|
96beb29732146b68273a438bb13c70c8e1243810d5f07c0f43e0a68636295c57
|
||
|
b245809200465020c2a46fdb23b667fd8d20beb964c2879cba22b016f19e1678
|
||
|
d402220b7c0d8ffe5bd47765cc70ddec3ef0302c05c28910bcdc47581a35c50b
|
||
|
c610c6e09b957a01a2b49724a9034712d7b2a0717c1b08b388590496ef2997ba
|
||
|
5149cfa3fd06e230e988ef88ac80dc32ebaad74811e3efc9bb427d7e7276f58c
|
||
|
b38f25728c6d861424788a90298555ee4c379502ebde7a47297c6bc92d0329ea
|
||
|
d33bcfebaafb293a97aebefcb29504c071b92dfa919fabeed897a2ca64802745
|
||
|
2a30e830ef891cf264824185779ff95293cc0417f8e7ff55b9ce05511a135af4
|
||
|
fbff346fa3482e3050c50fff7b3eb3a7b064ca097833bb14079085758a38d19a
|
||
|
2a18b0b01fb52ca435a56653e3dab85983c03bbddd317e8e8460472bcfa40891
|
||
|
1d72d53781553a03aa100a4f9d730635f8419f162f6ffc77a89ba6cea1afc20e
|
||
|
a5dcf384375530a62f9f8c819f79d26fe433e8a7323467ecbd944879faa96c16
|
||
|
0086ff1d32f749b3dbd92ee6997e0c03d0bc8b3ff6c3475e7ea70139da721f62
|
||
|
897b0cef0791bbf6a2ed3287fdcb5bae4dd1696ca8d7bfc743c05618c84921af
|
||
|
2c74b53c230fa3b5133bbc6bce5d175b2763d3dd350f8f3682ab522ed15355f4
|
||
|
9cf948d1766089b865e67fa997dd270396a0888163d1baa01d53b1bdf287e2d9
|
||
|
cce74cab4f7195e4095e2a89a95f22fad107489c460dbc0c8f9b82fd3c8c6af9
|
||
|
04606bd4ff9d8027084e968b00e5ba7c2074a503b1b9b0420695c34f14ffbfaa
|
||
|
424922e34c42ba3ed2f23aed626dc411508ae1f7bd233154734787bb09538c60
|
||
|
a93a31bc7d672aa4dd6f61f693a98067a719f835ee7ef945060921cd95240daf
|
||
|
fd5866818bdd1f119554da06f454fa3a2608613e820a4b00dbea8cc378a41fe9
|
||
|
04c71ccf7de9bdf3c290a1c5ccb2172b8414086c8eefd612ceb24e1aa53c455c
|
||
|
91f3e7bbc789bbd2d276578389c7735b9e02531fa4232c814d634cc69327aed1
|
||
|
665c2cb583e8fcc436dc97b7cbb096f22f4944a58dc9ae004821fc81a3658827
|
||
|
8dc79d09468278f8a886330403606007e198c50b854cb4e2997790101e2760ac
|
||
|
2ad1734c2c63a99cd99298a1a4bc24fe2958221afef80e0614334ae93dca4d73
|
||
|
2f88dd33cdda699ba69131e6632cf24b681e0fb0ddcc3030d9b6c0584b664c71
|
||
|
ec125af2936dc899426f9c168273c7bdcb6e5408ee82b06a67aecae3220979d2
|
||
|
b14e60377f096f2bdacce28ea2878385002daf3de2bb8188b6591165c7da7b11
|
||
|
a22ff7bac37574fe7dec99314c8ba09381e36cb90a1c01ba1cfdf423bd61fcbf
|
||
|
8b2bc59c98d57d7b8f7a99e3a50cc70fdf308301cb317a9ad87c19c4a9e93ef4
|
||
|
3b804b4dd6442066d0fe97c4a7c3d524e44949bb040ca926745fd830bc7f6785
|
||
|
a31d4e1740837eb2ce52c01fc8480ed25c5e2bdab982565659beaf545b5d6a2b
|
||
|
cfbedbc7b8fbd024687f31f4ba06944a260e823a86ac28cdacbe72335b490191
|
||
|
5c8b4f189a32fb0067a5834da46e6c21e84397be7cff6491bbb8729107c86052
|
||
|
abe68099faa786415329f431f4572336fcdbb32d04a05915331fafd92da61ef0
|
||
|
dee62bad52aa8e90de5b4c711a918739aeecbf0cb0fb5f9865dadd94660236ff
|
||
|
32bbd6b201ce0e1931cf091eb8ca9365d80e41b39ce434b4e949c1ba92837406
|
||
|
e2392ad7800a85e58c696511fd98bd801a5ea515c86600f4d6c4f4f08b892e91
|
||
|
2130fe9cb3eaade2a6dd6e3118d7399272eabbe4294940a1133b5b2acf89365e
|
||
|
579233183b8ae5a13716d1792364c421018f494e7ad65506ebf9950d1853d0a7
|
||
|
5be86e4119c661eb9833d7a02a5e4270ac31de6440f0ba62b91760a24af27d7a
|
||
|
5fade8b670e40da011b6d174d5f38f7ffc33c9ea13d727e72b0a3b111fd8129e
|
||
|
97782df0788980aeae67093c8da9699c45b4790ff98d89e88fbcb579379798d8
|
||
|
b92ebbd85ccbcced61bb8fd5c94c59b00c73f7ba7c3c6d22552f5fad530e21cc
|
||
|
b84a9de26a9de253a1e9d7c4757af2e2957126521c32c6e76d9391d49aeaafe4
|
||
|
78318e2a7fde90bc63d2d447ac71e5a04099b4a0d56ec9e6c5d38d8d72f82553"
|