PKGBUILDs/extra/kalgebra/PKGBUILD

49 lines
1.3 KiB
Bash
Raw Normal View History

2013-05-22 01:01:47 +00:00
# $Id: PKGBUILD 184890 2013-05-09 09:43:04Z andrea $
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
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch and cmake define to disable opengl for ARM
pkgname=kdeedu-kalgebra
2015-01-24 16:42:20 +00:00
pkgname=kalgebra
pkgver=14.12.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')
groups=('kde' '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"
2013-05-22 01:01:47 +00:00
"kalgebra-opengl_optional.patch")
2015-01-24 16:42:20 +00:00
sha1sums=('fb3b4908467c6bd0f7a54b1209fa497e2c66ad34'
2013-05-22 01:01:47 +00:00
'ae1b75e5192f8519517134447b481421112a6dd7')
2014-04-18 22:05:54 +00:00
prepare() {
2013-05-22 01:01:47 +00:00
cd "${srcdir}/kalgebra-${pkgver}"
patch -p1 -i ../kalgebra-opengl_optional.patch
cd "${srcdir}"
mkdir build
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 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSHOULD_BUILD_OPENGL=OFF
make
}
package() {
2014-04-18 22:05:54 +00:00
cd build
2013-05-22 01:01:47 +00:00
make DESTDIR="${pkgdir}" install
}