mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:07:14 +08:00
49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
source ../frameworks.conf
|
|
|
|
pkgname=ki18n
|
|
pkgver=${KFVersion}
|
|
pkgrel=2
|
|
pkgdesc='A get-text based translation framework'
|
|
arch=('x86_64')
|
|
url='https://projects.kde.org/projects/frameworks/ki18n'
|
|
license=('LGPL')
|
|
depends=('qt5-script' 'qt5-declarative')
|
|
makedepends=("extra-cmake-modules>=${KFECMVersion}" 'python3')
|
|
groups=('kf5')
|
|
options=("debug")
|
|
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"{,.sig})
|
|
sha256sums=( $(getSum ${pkgname})
|
|
SKIP)
|
|
validpgpkeys=( ${KFvalidpgpkeys[@]} )
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake_kf5 ../${pkgname}-${pkgver} \
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python3
|
|
make
|
|
}
|
|
|
|
# check() {
|
|
# cd build
|
|
# make test
|
|
# }
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# conflicts with kde-l10n since kf5 5.20.0
|
|
rm ${pkgdir}/usr/share/locale/nb/LC_SCRIPTS/ki18n5/ki18n5.js
|
|
rm ${pkgdir}/usr/share/locale/nn/LC_SCRIPTS/ki18n5/ki18n5.js
|
|
rm ${pkgdir}/usr/share/locale/nn/LC_SCRIPTS/ki18n5/skjermelement.pmap
|
|
rm ${pkgdir}/usr/share/locale/nn/LC_SCRIPTS/ki18n5/skjermelement.pmapc
|
|
rm ${pkgdir}/usr/share/locale/ca/LC_SCRIPTS/ki18n5/ki18n5.js
|
|
rm ${pkgdir}/usr/share/locale/ca@valencia/LC_SCRIPTS/ki18n5/ki18n5.js
|
|
}
|