PKGBUILD 1002 Bytes
Newer Older
AlmAck's avatar
AlmAck committed
1 2

pkgname=kholidays
AlmAck's avatar
AlmAck committed
3
pkgver=5.47.0
AlmAck's avatar
AlmAck committed
4
pkgrel=1
AlmAck's avatar
AlmAck committed
5 6 7 8 9 10 11 12
epoch=1
pkgdesc="KDE library for regional holiday information"
arch=('x86_64')
url='https://community.kde.org/Frameworks'
license=(LGPL)
depends=(qt5-base)
makedepends=(extra-cmake-modules qt5-declarative qt5-tools doxygen)
options=('debug')
13 14
source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha256sums=('8b3b4d57b80b78fc55fb4747a12e1710c9d0df816c116d0bc0a4b545ae8e3500'
AlmAck's avatar
AlmAck committed
15 16 17
            SKIP)
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>

AlmAck's avatar
AlmAck committed
18 19 20 21 22 23 24

prepare() {
  mkdir -p build
}

build() {
  cd build
25
  cmake ../${pkgname}-${pkgver} \
AlmAck's avatar
AlmAck committed
26
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
AlmAck's avatar
AlmAck committed
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 "$@"
AlmAck's avatar
AlmAck committed
33 34 35 36 37 38 39
  make
}

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