PKGBUILDs/extra/kalgebra/PKGBUILD

46 lines
1.2 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
2015-09-20 15:31:18 +00:00
pkgver=15.08.1
2013-05-22 01:01:47 +00:00
pkgrel=1
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')
replaces=('kdeedu-kalgebra')
conflicts=('kdeedu-kalgebra' 'kdeedu-analitza')
2013-05-22 01:01:47 +00:00
install=${pkgname}.install
2015-01-24 16:42:20 +00:00
source=("http://download.kde.org/stable/applications/${pkgver}/src/kalgebra-${pkgver}.tar.xz"
2015-01-24 18:10:55 +00:00
'kalgebra-disable-opengl.patch')
2015-09-20 15:31:18 +00:00
sha1sums=('1f0625c516e1ba36a3f3784b1704735564196a9d'
2015-01-24 18:10:55 +00:00
'103de918b6fdfb74a030db01afeb378fa0599717')
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
}