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

4
pkgname=knetwalk
Luca Giambonini's avatar
Luca Giambonini committed
5
pkgver=19.04.1
totte's avatar
totte committed
6
pkgrel=1
7
pkgdesc="Connect all the terminals to the server, in as few turns as possible"
Manuel's avatar
Manuel committed
8
arch=('x86_64')
9 10 11
url='http://kde.org/applications/games/knetwalk/'
screenshot='https://www.kde.org/images/screenshots/knetwalk.png'
license=('GPL' 'LGPL' 'FDL')
12
depends=('knotifyconfig' 'libkdegames')
13
makedepends=('extra-cmake-modules' 'kdoctools' 'python3')
14
groups=('kde' 'kde-uninstall' 'kde-applications' 'kdegames')
15 16
replaces=('kdegames-knetwalk')
conflicts=('kdegames-knetwalk')
17
options=('docs' 'debug')
18
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig})
Luca Giambonini's avatar
Luca Giambonini committed
19
sha256sums=('e762415b6891c4098febc090bc80e5698cd3fb9ac2b8f4988aaf096816e3b62b'
Luca Giambonini's avatar
Luca Giambonini committed
20
            'SKIP')
21 22
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
23 24 25 26

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

build() {
29
  cd build
30 31 32 33 34 35 36 37 38
  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 "$@"
39
  make
Manuel's avatar
Manuel committed
40 41 42
}

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