PKGBUILDs/extra/analitza/PKGBUILD

46 lines
1.2 KiB
Bash
Raw Normal View History

2015-01-24 16:46:39 +00:00
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
2013-03-13 00:32:20 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2015-01-24 17:28:21 +00:00
# - patch to disable opengl for ARM
2013-03-13 00:32:20 +00:00
2015-01-24 16:46:39 +00:00
pkgname=analitza
2015-12-20 13:53:56 +00:00
pkgver=15.12.0
pkgrel=1
2013-03-13 00:32:20 +00:00
pkgdesc="A library to add mathematical features to your program"
url="https://projects.kde.org/projects/kde/kdeedu/analitza"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
2015-01-24 16:46:39 +00:00
depends=('qt5-svg' 'qt5-declarative')
makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'eigen')
replaces=('kdebase-analitza')
conflicts=('kdebase-analitza')
source=("http://download.kde.org/stable/applications/${pkgver}/src/analitza-${pkgver}.tar.xz"
2015-01-24 17:28:21 +00:00
'analitza-disable-opengl.patch')
2015-12-20 13:53:56 +00:00
sha1sums=('a579cf0f2ab409e4190ba7e6c1832059fbfe9d3e'
2015-01-24 17:28:21 +00:00
'db4b031c52e10272af54542eebef5b68d8bd0c45')
2013-03-13 00:32:20 +00:00
2013-12-22 16:35:03 +00:00
prepare() {
2015-09-20 15:31:53 +00:00
mkdir -p build
2013-12-22 16:35:03 +00:00
2013-03-13 00:32:20 +00:00
cd "${srcdir}/analitza-${pkgver}"
2015-01-24 17:28:21 +00:00
patch -p1 -i ../analitza-disable-opengl.patch
2013-12-22 16:35:03 +00:00
}
2013-03-13 00:32:20 +00:00
2013-12-22 16:35:03 +00:00
build() {
2013-03-13 00:32:20 +00:00
cd build
cmake ../analitza-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
2015-01-24 16:46:39 +00:00
-DBUILD_TESTING=OFF \
2013-03-13 00:32:20 +00:00
-DCMAKE_INSTALL_PREFIX=/usr \
2015-01-24 16:46:39 +00:00
-DCMAKE_INSTALL_LIBDIR=lib \
2015-01-24 17:28:21 +00:00
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
2013-03-13 00:32:20 +00:00
make
}
package() {
2013-12-22 16:35:03 +00:00
cd build
2013-03-13 00:32:20 +00:00
make DESTDIR="${pkgdir}" install
}