PKGBUILD 1.36 KB
Newer Older
1
# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/kdegames-kpatience/
totte's avatar
totte committed
2
# Include global configuration
Manuel's avatar
Manuel committed
3

4
pkgname=kpat
AlmAck's avatar
AlmAck committed
5
pkgver=19.04.1
totte's avatar
totte committed
6
pkgrel=1
7
pkgdesc="Collection of various patience games"
Manuel's avatar
Manuel committed
8 9
arch=('x86_64')
url='http://www.kde.org'
10
license=('GPL' 'LGPL' 'FDL')
11 12
depends=(libkdegames freecell-solver hicolor-icon-theme)
makedepends=(extra-cmake-modules kdoctools)
13
groups=('kde' 'kde-uninstall' 'kde-applications' 'kdegames')
14 15
replaces=('kdegames-kpat')
conflicts=('kdegames-kpat')
16
options=('docs' 'debug')
AlmAck's avatar
AlmAck committed
17
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig})
AlmAck's avatar
AlmAck committed
18
sha256sums=('2c0b29e5d372d55d77ceced098b8262b11a431518e818eec052d867c21ad6896'
AlmAck's avatar
AlmAck committed
19
            'SKIP')
AlmAck's avatar
AlmAck committed
20 21
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
22 23 24 25

prepare() {
  mkdir -p build
}
Manuel's avatar
Manuel committed
26 27

build() {
28
  cd build
AlmAck's avatar
AlmAck committed
29 30 31 32 33 34 35 36 37
  cmake ../${pkgname}-${pkgver} \
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DKDE_INSTALL_LIBDIR=lib \
        -DKDE_INSTALL_SYSCONFDIR=/etc \
        -DKDE_INSTALL_LIBEXECDIR=lib \
        -DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d \
        -DBUILD_TESTING=OFF \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@"
38
  make
Manuel's avatar
Manuel committed
39 40 41
}

package() {
42 43
  cd build
  make DESTDIR=${pkgdir} install
Manuel's avatar
Manuel committed
44
}