updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / tmview / PKGBUILD
blob39847a0bc51e0475c5183f0dcc39ae2bf3532ae9
1 pkgname=tmview
2 pkgver=01.03
3 pkgrel=3
4 pkgdesc="screen-previewer for .dvi-files compiled by TeX"
5 arch=('i686' 'x86_64')
6 url="http://www.ctan.org/tex-archive/dviware/tmview/"
7 conflicts=('dvifb' 'dvilx')
8 provides=('dvifb' 'dvilx')
9 replaces=('dvifb' 'dvilx')
10 optdepends=('texlive-bin: for creating dvi files' 'gpm: for mouse support')
11 depends=('libx11')
12 license=('custom')
13 source=(http://mirror.ctan.org/dviware/tmview/tmv${pkgver:0:2}${pkgver:3}.tgz
14         100_use_kpathsea.diff
15         200_backslashes.diff
16         201_missing_breaks.diff
17         202_invalid_casts.diff
18         203_64bit_support.diff
19         204_framebuffer_updates.diff
20         205_misc_bugs.diff
21         206_fix_compile.diff
22         207_fix_paths.diff
23         300_documentation.diff)
24 md5sums=('c1d43526a3bc32a684017ffd9f8040be'
25          '6e0a5528901c3d7139398c555edadf75'
26          '956ff1dfcefe89ec8046b1ad4d08dd3d'
27          'e02e29ac1842b00158e472ded23beba6'
28          'c4ef0c351592e9ee2cfc81e755ec60d1'
29          'f4190c97560c0cf44a08667f7b844483'
30          '8ab7112aa28df5440206d6053664a2cc'
31          'b09598dd50089a1bc45bd37552ceb5ad'
32          '2f8fae980bec1774ed187620b4312cfc'
33          'be946ea82e642b2a43e6034a48416908'
34          'b3e994052242c4990884596a21250423')
36 build() {
37   cd ${srcdir}/${pkgname}
39   # Apply patches
40   patch -p1 < ${srcdir}/100_use_kpathsea.diff
41   patch -p1 < ${srcdir}/200_backslashes.diff
42   patch -p1 < ${srcdir}/201_missing_breaks.diff
43   patch -p1 < ${srcdir}/202_invalid_casts.diff
44   patch -p1 < ${srcdir}/203_64bit_support.diff
45   patch -p1 < ${srcdir}/204_framebuffer_updates.diff
46   patch -p1 < ${srcdir}/205_misc_bugs.diff
47   patch -p1 < ${srcdir}/206_fix_compile.diff
48   patch -p1 < ${srcdir}/207_fix_paths.diff
49   patch -p1 < ${srcdir}/300_documentation.diff
51   make -f MakeLX
52   make -f MakeFb
54   install -D -m644 doc/tmview.1 ${pkgdir}/usr/share/man/man1/dvilx.1
55   install -D -m644 doc/tmview.1 ${pkgdir}/usr/share/man/man1/dvifb.1
57   install -D -m644 README ${pkgdir}/usr/share/doc/tmview/README
58   install -D -m644 doc/tmview.dvi ${pkgdir}/usr/share/doc/tmview/tmview.dvi
59   install -D -m644 doc/tmview.tex ${pkgdir}/usr/share/doc/tmview/tmview.tex
61   install -D -m755 dvilx.linux ${pkgdir}/usr/bin/dvilx
62   install -D -m755 dvifb.linux ${pkgdir}/usr/bin/dvifb
63   install -D -m644 IAFA-PACKAGE ${pkgdir}/usr/share/licenses/${pkgname}/IAFA-PACKAGE