diff --git a/extra/analitza/0001-Link-against-GLESv2-for-Linux.patch b/extra/analitza/0001-Link-against-GLESv2-for-Linux.patch new file mode 100644 index 000000000..97e7c95c9 --- /dev/null +++ b/extra/analitza/0001-Link-against-GLESv2-for-Linux.patch @@ -0,0 +1,26 @@ +From fffe7737f11b844c3007b588310c927be437df86 Mon Sep 17 00:00:00 2001 +From: Kevin Mihelich +Date: Sun, 23 Apr 2017 10:15:01 -0600 +Subject: [PATCH] Link against GLESv2 for Linux + +Signed-off-by: Kevin Mihelich +--- + analitzaplot/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/analitzaplot/CMakeLists.txt b/analitzaplot/CMakeLists.txt +index 560401b4..0c1256af 100644 +--- a/analitzaplot/CMakeLists.txt ++++ b/analitzaplot/CMakeLists.txt +@@ -63,7 +63,7 @@ target_link_libraries ( AnalitzaPlot + Analitza + ) + +-if(CMAKE_SYSTEM_NAME STREQUAL Android) ++if(CMAKE_SYSTEM_NAME STREQUAL Android OR CMAKE_SYSTEM_NAME STREQUAL Linux) + target_link_libraries(AnalitzaPlot GLESv2) + elseif(WIN32) + target_link_libraries(AnalitzaPlot ${GLEW_LIBRARIES}) +-- +2.12.2 + diff --git a/extra/analitza/PKGBUILD b/extra/analitza/PKGBUILD new file mode 100644 index 000000000..e547e6ec2 --- /dev/null +++ b/extra/analitza/PKGBUILD @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: Andrea Scarpino + +# ALARM: Kevin Mihelich +# - patch to link against GLES for Linux + +pkgname=analitza +pkgver=17.04.0 +pkgrel=1 +pkgdesc="A library to add mathematical features to your program" +url="https://edu.kde.org/" +arch=('i686' 'x86_64') +license=('GPL' 'LGPL' 'FDL') +depends=('qt5-svg' 'qt5-declarative') +makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'eigen' 'qt5-tools') +replaces=('kdebase-analitza') +conflicts=('kdebase-analitza') +source=("https://download.kde.org/stable/applications/${pkgver}/src/analitza-${pkgver}.tar.xz"{,.sig} + '0001-Link-against-GLESv2-for-Linux.patch') +sha256sums=('af57e441fcdfddda4fcf1d3345c2335c4d9557791a5fcef8455b488d19f0a2d7' + 'SKIP' + '3bce76a8106ada89727a5f781441ce8af8c1d619230e25bbecb48aee5b7511d0') +validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7) # Albert Astals Cid + +prepare() { + mkdir -p build + patch -p1 -d $pkgname-$pkgver -i ../0001-Link-against-GLESv2-for-Linux.patch +} + +build() { + cd build + cmake ../$pkgname-$pkgver \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib + make +} + +package() { + cd build + make DESTDIR="${pkgdir}" install +}