summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba78119ce07fe443307933382701f43ba2577707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Allen Choong <allen.choong at gmail dot com>
pkgname=klatexformula
pkgver=4.1.0
pkgrel=1
pkgdesc="Provides GUI for generating images from LaTeX equations"
url='http://klatexformula.sourceforge.net'
arch=('i686' 'x86_64')
license=('GPL2')
depends=('python' 'qt5-base' 'qt5-tools' 'qt5-svg')
source=("http://sourceforge.net/projects/klatexformula/files/klatexformula/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz" "klfbackend.patch")
md5sums=('6c17a3f3f415221bf6630cec2cd7485d'
         'c4549b8d521b97010d1dc99ba5265fec')
install="${pkgname}.install"

package() {
	cd "${srcdir}/${pkgname}-${pkgver}/"
	sed -i "s|(uninstall|(uninstall2|" cmake/klfinstallpaths.cmake
    sed -i "30i#include <QAction>" src/klftools/klfadvancedconfigeditor.cpp
    sed -i "41i#include <QPainterPath>" src/klftools/klfflowlistwidget_p.h
	patch -p1 -u < ../klfbackend.patch
	mkdir build && cd build
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ..
	make DESTDIR="${pkgdir}/" install
}