PKGBUILDs/extra/kalgebra/PKGBUILD

48 lines
1.4 KiB
Bash
Raw Normal View History

2015-01-24 18:10:55 +00:00
# $Id$
2015-01-24 16:42:20 +00:00
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
2013-05-22 01:01:47 +00:00
2015-04-19 16:30:12 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch and cmake define to disable opengl for ARM
2015-01-24 16:42:20 +00:00
pkgname=kalgebra
2017-03-10 00:36:22 +00:00
pkgver=16.12.3
pkgrel=1
2013-05-22 01:01:47 +00:00
pkgdesc="Graph Calculator"
2017-02-28 18:59:19 +00:00
url="https://kde.org/applications/education/kalgebra/"
2013-05-22 01:01:47 +00:00
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
2015-04-19 16:30:12 +00:00
groups=('kde-applications' 'kdeedu')
2015-01-24 16:42:20 +00:00
depends=('analitza' 'kio' 'qt5-webkit' 'hicolor-icon-theme')
makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'glu')
2016-11-11 01:18:09 +00:00
optdepends=('kirigami: for KAlgebra Mobile')
2015-01-24 16:42:20 +00:00
replaces=('kdeedu-kalgebra')
conflicts=('kdeedu-kalgebra' 'kdeedu-analitza')
2017-02-28 18:59:19 +00:00
source=("https://download.kde.org/stable/applications/${pkgver}/src/kalgebra-${pkgver}.tar.xz"{,.sig}
2015-01-24 18:10:55 +00:00
'kalgebra-disable-opengl.patch')
2017-03-10 00:36:22 +00:00
sha256sums=('0b6781917d2b5cbe7b400b5ece5d163a846cfec3ff93aaa0a72d90fa4ab41162'
2016-12-17 15:48:36 +00:00
'SKIP'
2017-03-10 00:36:22 +00:00
'281bd6ace1614d9982d6a3bf37c42b711e49618c64a4632eab6fac47da360dc7')
2016-12-17 15:48:36 +00:00
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7) # Albert Astals Cid <aacid@kde.org>
2013-05-22 01:01:47 +00:00
2014-04-18 22:05:54 +00:00
prepare() {
2015-09-20 15:31:18 +00:00
mkdir -p build
2015-01-24 18:10:55 +00:00
cd kalgebra-${pkgver}
patch -p1 -i ../kalgebra-disable-opengl.patch
2014-04-18 22:05:54 +00:00
}
build() {
2013-05-22 01:01:47 +00:00
cd build
cmake ../kalgebra-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DKDE4_BUILD_TESTS=OFF \
2015-04-19 16:30:12 +00:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DSHOULD_BUILD_OPENGL=OFF
2013-05-22 01:01:47 +00:00
make
}
package() {
2014-04-18 22:05:54 +00:00
cd build
2013-05-22 01:01:47 +00:00
make DESTDIR="${pkgdir}" install
}