core/ki18n/PKGBUILD

47 lines
1.2 KiB
Bash
Raw Normal View History

2014-11-14 06:49:11 +08:00
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=ki18n
pkgver=${KFVersion}
pkgrel=1
2014-11-14 06:49:11 +08:00
pkgdesc='A get-text based translation framework'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/ki18n'
license=('LGPL')
2015-12-08 06:30:24 +08:00
depends=('qt5-script' 'qt5-declarative')
makedepends=("extra-cmake-modules>=${KFECMVersion}" 'python3')
2014-11-14 06:49:11 +08:00
groups=('kf5')
options=("debug")
2014-11-15 06:49:31 +08:00
source=("$KFServer/${pkgname}-${pkgver}.tar.xz")
2014-11-14 06:49:11 +08:00
sha256sums=( $(getSum ${pkgname}) )
prepare() {
mkdir -p build
}
build() {
cd build
2014-11-15 06:49:31 +08:00
cmake_kf5 ../${pkgname}-${pkgver} \
2014-11-14 06:49:11 +08:00
-DPYTHON_EXECUTABLE=/usr/bin/python3
make
}
# check() {
# cd build
# make test
# }
2014-11-14 06:49:11 +08:00
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
2016-04-17 22:36:13 +08:00
rm ${pkgdir}/usr/share/locale/ca/LC_SCRIPTS/ki18n5/ki18n5.js
rm ${pkgdir}/usr/share/locale/ca@valencia/LC_SCRIPTS/ki18n5/ki18n5.js
2014-11-14 06:49:11 +08:00
}