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

pkgname=kcoreaddons
Luca Giambonini's avatar
Luca Giambonini committed
4
pkgver=5.62.0
Luca Giambonini's avatar
Luca Giambonini committed
5
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
6 7 8 9
pkgdesc='Addons to QtCore'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kcoreaddons'
license=('LGPL')
10
depends=("qt5-base" 'shared-mime-info' 'gamin')
Luca Giambonini's avatar
Luca Giambonini committed
11
makedepends=("extra-cmake-modules>=5.62.0" 'qt5-tools')
Xuetian Weng's avatar
Xuetian Weng committed
12
groups=('kf5')
13
source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
Luca Giambonini's avatar
Luca Giambonini committed
14
sha256sums=('3819e2792a2e61444e337cd1a4cbdc362c18810918376eefc30b203fbd160b41'
Luca Giambonini's avatar
Luca Giambonini committed
15
            'SKIP')
16
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
Xuetian Weng's avatar
Xuetian Weng committed
17 18 19

prepare() {
  mkdir -p build
Jeff Huang's avatar
Jeff Huang committed
20
  cd ${srcdir}/${pkgname}-${pkgver}
Xuetian Weng's avatar
Xuetian Weng committed
21 22 23 24
}

build() {
  cd build
25
  cmake ../${pkgname}-${pkgver} \
Luca Giambonini's avatar
Luca Giambonini committed
26
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
27 28 29 30 31 32
        -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
33
    -D_KDE4_DEFAULT_HOME_POSTFIX=4
Xuetian Weng's avatar
Xuetian Weng committed
34 35 36 37 38 39 40
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}