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
2016-12-17 15:48:36 +00:00
pkgver=16.12.0
pkgrel=1
2013-05-22 01:01:47 +00:00
pkgdesc="Graph Calculator"
url="http://kde.org/applications/education/kalgebra/"
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')
2016-12-17 15:48:36 +00:00
source=("http://download.kde.org/stable/applications/${pkgver}/src/kalgebra-${pkgver}.tar.xz"{,.sig}
2015-01-24 18:10:55 +00:00
'kalgebra-disable-opengl.patch')
2016-12-17 15:48:36 +00:00
sha1sums=('8f5f55fd8316753037d8aa941c72f4a08e258853'
'SKIP'
2015-01-24 18:10:55 +00:00
'103de918b6fdfb74a030db01afeb378fa0599717')
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
}