summaryrefslogtreecommitdiffstats
path: root/arch/tde-base/tde-i18n/PKGBUILD
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-10-27 22:43:21 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-10-29 13:19:50 +0200
commitb9d33de3622fcad3fdfdc9b1464b4bc160f205ba (patch)
tree2c7f4cc2cd48be6cb33a94fe755777bd5b7cc53b /arch/tde-base/tde-i18n/PKGBUILD
parent455c3e56aa61c012c8839ed1fae408a5f8e2bac8 (diff)
downloadtde-packaging-b9d33de3622fcad3fdfdc9b1464b4bc160f205ba.tar.gz
tde-packaging-b9d33de3622fcad3fdfdc9b1464b4bc160f205ba.zip
ArchLinux: Update to R14.0.11
+ Add standalone package tde-cmake-trinity + Switch CMake builds to use Ninja + Switch some packages to CMake + Add tde-tqca and tde-akode + Add tde-i18n packages Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 1838e1a41f12414ad989d5f1c712ef0c62df9bf1)
Diffstat (limited to 'arch/tde-base/tde-i18n/PKGBUILD')
-rw-r--r--arch/tde-base/tde-i18n/PKGBUILD148
1 files changed, 148 insertions, 0 deletions
diff --git a/arch/tde-base/tde-i18n/PKGBUILD b/arch/tde-base/tde-i18n/PKGBUILD
new file mode 100644
index 000000000..5d9fcec95
--- /dev/null
+++ b/arch/tde-base/tde-i18n/PKGBUILD
@@ -0,0 +1,148 @@
+# Contributor: Slávek Banko <slavek.banko@axis.cz>
+
+_mod=tde-i18n
+_cat=core/
+_kdemod="${_mod/tde/kde}"
+
+pkgbase="tde-${_mod/tde-}"
+pkgname=("$pkgbase")
+pkgver=14.0.11
+pkgrel=1
+pkgdesc="Internationalized (i18n) files for TDE"
+arch=('any')
+url="https://scm.trinitydesktop.org/scm/git/${_mod}"
+license=('GPL')
+groups=('tde-base')
+makedepends=('tde-cmake-trinity')
+depends=('tde-tdelibs')
+options=('staticlibs' 'libtool' '!strip')
+source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/${_cat}${_mod}-trinity-${pkgver}.tar.xz")
+md5sums=('a5a69fb9f1e4dae6852a68d4725ee6c3')
+install=''
+
+_languages=(
+ 'af "Afrikaans"'
+ 'ar "Arabic"'
+ 'az "Azerbaijani"'
+ 'be "Belarusian"'
+ 'bg "Bulgarian"'
+ 'bn "Bengali"'
+ 'br "Breton"'
+ 'bs "Bosnian"'
+ 'ca "Catalan"'
+ 'cs "Czech"'
+ 'csb "Kashubian"'
+ 'cy "Welsh"'
+ 'da "Danish"'
+ 'de "German"'
+ 'el "Greek"'
+ 'en_GB "English (British)"'
+ 'eo "Esperanto"'
+ 'es "Spanish"'
+ 'es_AR "Spanish (Argentina)"'
+ 'et "Estonian"'
+ 'eu "Basque"'
+ 'fa "Persian"'
+ 'fi "Finnish"'
+ 'fr "French"'
+ 'fy "Frisian"'
+ 'ga "Irish"'
+ 'gl "Galician"'
+ 'he "Hebrew"'
+ 'hi "Hindi"'
+ 'hr "Croatian"'
+ 'hu "Hungarian"'
+ 'is "Icelandic"'
+ 'it "Italian"'
+ 'ja "Japanese"'
+ 'kk "Kazakh"'
+ 'km "Khmer"'
+ 'ko "Korean"'
+ 'lt "Lithuanian"'
+ 'lv "Latvian"'
+ 'mk "Macedonian"'
+ 'mn "Mongolian"'
+ 'ms "Malay"'
+ 'nb "Norwegian Bokmål"'
+ 'nds "Low Saxon"'
+ 'nl "Dutch"'
+ 'nn "Norwegian Nynorsk"'
+ 'pa "Punjabi"'
+ 'pl "Polish"'
+ 'pt "Portuguese"'
+ 'pt_BR "Portuguese (Brazil)"'
+ 'ro "Romanian"'
+ 'ru "Russian"'
+ 'rw "Kinyarwanda"'
+ 'se "Northern Sami"'
+ 'sk "Slovak"'
+ 'sl "Slovenian"'
+ 'sr "Serbian"'
+ 'sr@Latn "Serbian Latin"'
+ 'ss "Swati"'
+ 'sv "Swedish"'
+ 'ta "Tamil"'
+ 'te "Telugu"'
+ 'tg "Tajik"'
+ 'th "Thai"'
+ 'tr "Turkish"'
+ 'uk "Ukrainian"'
+ 'uz "Uzbek"'
+ 'uz@cyrillic "Uzbek (Cyrillic)"'
+ 'vi "Vietnamese"'
+ 'wa "Walloon"'
+ 'zh_CN "Chinese (Simplified)"'
+ 'zh_TW "Chinese (Traditional)"'
+)
+
+_pkglangs=()
+for _lang in "${_languages[@]}"; do
+ _locale=${_lang%% *}
+ _pkglang=$(echo ${_locale,,} | tr '[:upper:]' '[:lower:]' | \
+ sed "s|@latn|latin|" | \
+ tr -d "_" | tr -d "@")
+ _pkgname=${pkgbase}-${_pkglang}
+
+ pkgname+=($_pkgname)
+ _pkglangs+=($_pkgname)
+ eval "package_$_pkgname() {
+ _package $_pkglang $_lang
+ }"
+done
+
+_package() {
+ pkgdesc="$3 ($2) internationalized (i18n) files for TDE"
+ provides=("${_mod}-${1}")
+ conflicts=("trinity-${_kdemod}-${1}" "kdemod3-${_kdemod}-${1}")
+ replaces=("trinity-${_mod}-${1}")
+
+ msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/build
+ DESTDIR="${pkgdir}" ninja -j1 install-${2/@/_}
+}
+
+[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity
+
+build() {
+ msg "Creating out-of-source build directory: ${srcdir}/build"
+ mkdir -p ${srcdir}/build
+ cd ${srcdir}/build
+
+ msg "Starting cmake..."
+ cmake ${srcdir}/${pkgname}-trinity-${pkgver} \
+ -GNinja \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \
+ -DBUILD_ALL=ON
+
+ msg "Building - ${pkgname#*-}..."
+ ninja $NUMJOBS
+}
+
+package_tde-i18n() {
+ pkgdesc="All languages (all) internationalized (i18n) files for TDE"
+ provides=("${_mod}")
+ conflicts=("trinity-${_kdemod}" "kdemod3-${_kdemod}")
+ replaces=("trinity-${_mod}")
+ depends+=(${_pkglangs[@]})
+}