1 # PKGBUILD derived from texmaker-oxygen-icons by damian01w
2 pkgname=texmaker-nowebkit
6 pkgdesc="The famous free cross-platform latex editor, stripped of browser/QtWebKit module."
8 url="http://www.xm1math.net/texmaker/index.html"
10 depends=('qt>=4.7' 'ghostscript')
11 conflicts=('texmaker')
12 #optdepends=('ibus-qt: to avoid some trouble with accentued characters')
13 source=(http://www.xm1math.net/texmaker/$_pkgname-$pkgver.tar.bz2 \
18 md5sums=('3d54fe9e5530f5cd8f9365bf9fb2e910'
19 '48ca54ffd5eb98a83cbf3626205b8639'
20 '445c4f825ef92a99fcd45445a7097d10'
21 'aa331bfadd09e39042be09d2021ba046'
25 cd $srcdir/$_pkgname-$pkgver
27 # remove reference for WebKit from texmaker.pro
28 sed 's/webkit//' <texmaker.pro >texmaker.pro.new
29 mv -f texmaker.pro.new texmaker.pro
31 # purge browser.h/.cpp
32 cp -f $startdir/browser.* .
34 # run qmake; generate Makefile
35 qmake -unix PREFIX=//usr texmaker.pro
40 cd $srcdir/$_pkgname-$pkgver
42 export INSTALL_ROOT=$pkgdir
45 rm -f $pkgdir/usr/share/texmaker/{*.desktop,COPYING}
47 install -D -m644 images/appicon.png \
48 $pkgdir/usr/share/pixmaps/texmaker.png
50 install -D -m644 $srcdir/$_pkgname.desktop \
51 $pkgdir/usr/share/applications/$_pkgname.desktop