PKGBUILD 1.4 KB
Newer Older
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
1
# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/kdeedu-kbruch/
totte's avatar
totte committed
2
# Include global configuration
Phil's avatar
Phil committed
3

Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
4
pkgname=kbruch
totte's avatar
totte committed
5
pkgver=19.08.2
6
pkgrel=3
7
pkgdesc="Exercise fractions"
Phil's avatar
Phil committed
8
url="http://kde.org/applications/education/kbruch/"
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
9
screenshot='https://www.kde.org/images/screenshots/kbruch.png'
Manuel's avatar
Manuel committed
10
arch=('x86_64')
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
11 12 13
license=('GPL' 'LGPL' 'FDL')
depends=('kxmlgui')
makedepends=('extra-cmake-modules' 'kdoctools' 'python3')
14
groups=('kde' 'kde-uninstall' 'kde-applications' 'kdeedu')
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
15 16
replaces=('kdeedu-kbruch')
conflicts=('kdeedu-kbruch')
17
options=('docs' 'debug')
18
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig})
totte's avatar
totte committed
19
sha256sums=('a2cead23cab880b21769e41086505b50de659630860d056b6a8504caafd4dcf0'
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>
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
23 24 25 26

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

Manuel's avatar
Manuel committed
28
build() {
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
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 "$@"
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
39
  make
Phil's avatar
Phil committed
40 41
}

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