PKGBUILDs/extra/kalgebra/PKGBUILD
2017-02-28 18:59:19 +00:00

47 lines
1.4 KiB
Bash

# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch and cmake define to disable opengl for ARM
pkgname=kalgebra
pkgver=16.12.2
pkgrel=3
pkgdesc="Graph Calculator"
url="https://kde.org/applications/education/kalgebra/"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde-applications' 'kdeedu')
depends=('analitza' 'kio' 'qt5-webkit' 'hicolor-icon-theme')
makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'glu')
optdepends=('kirigami: for KAlgebra Mobile')
replaces=('kdeedu-kalgebra')
conflicts=('kdeedu-kalgebra' 'kdeedu-analitza')
source=("https://download.kde.org/stable/applications/${pkgver}/src/kalgebra-${pkgver}.tar.xz"{,.sig}
'kalgebra-disable-opengl.patch')
sha1sums=('067a17bbd6c44f885db13634bba5db71bfd54f13'
'SKIP'
'103de918b6fdfb74a030db01afeb378fa0599717')
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7) # Albert Astals Cid <aacid@kde.org>
prepare() {
mkdir -p build
cd kalgebra-${pkgver}
patch -p1 -i ../kalgebra-disable-opengl.patch
}
build() {
cd build
cmake ../kalgebra-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DKDE4_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSHOULD_BUILD_OPENGL=OFF
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}