PKGBUILD 1.59 KB
Newer Older
Xuetian Weng's avatar
Xuetian Weng committed
1 2 3 4
# Contributor: Andrea Scarpino <andrea@archlinux.org>


pkgname=ki18n
Luca Giambonini's avatar
Luca Giambonini committed
5
pkgver=5.47.0
6
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
7 8 9 10
pkgdesc='A get-text based translation framework'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/ki18n'
license=('LGPL')
Luca Giambonini's avatar
Luca Giambonini committed
11 12
depends=('qt5-script' 'qt5-declarative')
makedepends=("extra-cmake-modules>=${KFECMVersion}" 'python3')
Xuetian Weng's avatar
Xuetian Weng committed
13 14
groups=('kf5')
options=("debug")
15 16
source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha256sums=('2627faa0186e9b463d978e842bf6df1e7d27e7e9d487793f6709e82a1c0729a8'
17 18
            SKIP)
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
Xuetian Weng's avatar
Xuetian Weng committed
19 20 21 22 23 24 25

prepare() {
  mkdir -p build
}

build() {
  cd build
26
  cmake ../${pkgname}-${pkgver} \
Luca Giambonini's avatar
Luca Giambonini committed
27
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
28 29 30 31 32 33
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DKDE_INSTALL_LIBDIR=lib \
        -DKDE_INSTALL_SYSCONFDIR=/etc \
        -DKDE_INSTALL_LIBEXECDIR=lib \
        -DBUILD_TESTING=OFF \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@" \
Xuetian Weng's avatar
Xuetian Weng committed
34 35 36 37
    -DPYTHON_EXECUTABLE=/usr/bin/python3
  make
}

38 39 40 41
# check() {
#   cd build
#   make test
# }
Xuetian Weng's avatar
Xuetian Weng committed
42 43 44 45

package() {
  cd build
  make DESTDIR="${pkgdir}" install
46 47 48 49 50 51

  # 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
AlmAck's avatar
AlmAck committed
52 53
  rm ${pkgdir}/usr/share/locale/ca/LC_SCRIPTS/ki18n5/ki18n5.js
  rm ${pkgdir}/usr/share/locale/ca@valencia/LC_SCRIPTS/ki18n5/ki18n5.js
Xuetian Weng's avatar
Xuetian Weng committed
54
}