updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / texmaker-nowebkit / PKGBUILD
blob08aebce3636522c2d03fb348e1518ae7f4ba03d6
1 # PKGBUILD derived from texmaker-oxygen-icons by damian01w
2 pkgname=texmaker-nowebkit
3 _pkgname=texmaker
4 pkgver=3.2.1
5 pkgrel=1
6 pkgdesc="The famous free cross-platform latex editor, stripped of browser/QtWebKit module."
7 arch=('i686' 'x86_64')
8 url="http://www.xm1math.net/texmaker/index.html"
9 license=('GPL')
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 \
14         texmaker.desktop \
15         browser.cpp \
16         browser.h \
18 md5sums=('3d54fe9e5530f5cd8f9365bf9fb2e910'
19          '48ca54ffd5eb98a83cbf3626205b8639'
20          '445c4f825ef92a99fcd45445a7097d10'
21          'aa331bfadd09e39042be09d2021ba046'
24 build() {
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
30         
31         # purge browser.h/.cpp
32         cp -f $startdir/browser.* .
33         
34         # run qmake; generate Makefile
35         qmake -unix PREFIX=//usr texmaker.pro
36         
37         make || return 1
39 package() {
40         cd $srcdir/$_pkgname-$pkgver
41         
42         export INSTALL_ROOT=$pkgdir
43         make install
44         
45         rm -f $pkgdir/usr/share/texmaker/{*.desktop,COPYING}
46         
47         install -D -m644 images/appicon.png \
48                 $pkgdir/usr/share/pixmaps/texmaker.png
49                 
50         install -D -m644 $srcdir/$_pkgname.desktop \
51                 $pkgdir/usr/share/applications/$_pkgname.desktop