updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / texworks / PKGBUILD
blobe974c45b22c8e119a82f9c1f1af9d072edd42325
1 # Maintainer: Erdbeerkaese <erdbeerkaese@gmx.net>
2 # Contributor: Michael Pfeuti
3  
4 pkgname=texworks
5 pkgver=0.4.3_r858
6 pkgrel=1
7 pkgdesc="A TeX IDE inspired by TeXShop."
8 arch=('i686' 'x86_64')
9 url="http://tug.org/texworks"
10 license=('GPL2')
11 depends=('poppler-qt' 'hunspell')
12 makedepends=()
13 optdepends=('texlive-core')
14 provides=('texworks')
15 conflicts=('texworks-svn')
16 install=texworks.install
17 source=("http://texworks.googlecode.com/files/texworks-${pkgver//_/-}.tar.gz")
18 md5sums=('49c8f68dbe778435dd951dffb43b3ddb')
20 build() {
21   cd ${srcdir}/texworks-`echo ${pkgver} | sed 's/_.*//g'`
23   qmake
24   make || return 1
27 package() {
28   cd ${srcdir}/texworks-`echo ${pkgver} | sed 's/_.*//g'`
30   # binary
31   install -D -m755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
33   # documentation & manual
34   install -d ${pkgdir}/usr/share/doc/${pkgname}
35   install -D -m644 README ${pkgdir}/usr/share/doc/${pkgname}
36   install -D -m644 NEWS ${pkgdir}/usr/share/doc/${pkgname}
37   cp -r manual/en ${pkgdir}/usr/share/doc/${pkgname}
39   # icon
40   install -D -m644 res/images/TeXworks.png \
41     ${pkgdir}/usr/share/pixmaps/TeXworks.png
43   # manpage
44   install -D -m644 man/${pkgname}.1 ${pkgdir}/usr/share/man/man1/${pkgname}.1
46   # desktop
47   install -D -m644 ${pkgname}.desktop \
48     ${pkgdir}/usr/share/applications/${pkgname}.desktop
51 # vim: set ft=sh ts=2 sw=2 et: