summaryrefslogtreecommitdiff
path: root/community/catdvi/PKGBUILD
blob: d75c81ab1be839f8bc99c6e40234e2ef37af5e16 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 56716 2011-10-11 07:11:55Z andrea $
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Xilon <xilonmu@gmail.com>

pkgname=catdvi
pkgver=0.14
pkgrel=4
pkgdesc="A DVI to plain text translator"
arch=('i686' 'x86_64' 'mips64el')
url="http://catdvi.sourceforge.net"
license=('GPL')
depends=('glibc' 'texlive-core')
makedepends=('texlive-fontsextra')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
        'texlive2008.patch')
md5sums=('b18eac65baf522c1e37bb3dc37ab42c3'
         '509f61a30d3758e5d102c124bc5fa9a0')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  patch -p1 -i "${srcdir}"/texlive2008.patch
  autoconf

  ./configure --prefix=/usr --mandir=/usr/share/man

  install -d $pkgdir/usr/bin $pkgdir/usr/share/man/man1
  sed -i "s#\(bindir = \)\(.*\)#\1$pkgdir\2#" config.mk
  sed -i "s#\(mandir = \)\(.*\)#\1$pkgdir\2#" config.mk

  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}