summaryrefslogtreecommitdiff
path: root/community/catdvi/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-12 23:14:40 +0000
committerroot <root@rshg054.dnsready.net>2011-10-12 23:14:40 +0000
commitb79408ae7429f4e5c99582cb55127b6e86b7fdac (patch)
tree022f1f4179bb356f8c94ff00a4a56edbeaa7dc9c /community/catdvi/PKGBUILD
parentf482dc1bd42773a12552e5a60df119410a0d8bd8 (diff)
Wed Oct 12 23:14:40 UTC 2011
Diffstat (limited to 'community/catdvi/PKGBUILD')
-rw-r--r--community/catdvi/PKGBUILD33
1 files changed, 22 insertions, 11 deletions
diff --git a/community/catdvi/PKGBUILD b/community/catdvi/PKGBUILD
index 880a5bdac..a15f0e3e1 100644
--- a/community/catdvi/PKGBUILD
+++ b/community/catdvi/PKGBUILD
@@ -1,26 +1,37 @@
-# Contributor: Xilon <xilonmu@gmail.com>
+# $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=3
+pkgrel=4
pkgdesc="A DVI to plain text translator"
arch=('i686' 'x86_64')
url="http://catdvi.sourceforge.net"
license=('GPL')
depends=('glibc' 'texlive-core')
-maedepends=('texlive-fontsextra')
-source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2")
-md5sums=('b18eac65baf522c1e37bb3dc37ab42c3')
+makedepends=('texlive-fontsextra')
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
+ 'texlive2008.patch')
+md5sums=('b18eac65baf522c1e37bb3dc37ab42c3'
+ '509f61a30d3758e5d102c124bc5fa9a0')
build() {
cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ patch -p1 -i "${srcdir}"/texlive2008.patch
+ autoconf
+
+ ./configure --prefix=/usr --mandir=/usr/share/man
- install -d $pkgdir/usr/bin $pkgdir/usr/share/man/man1 || return 1
- sed -i "s#\(bindir = \)\(.*\)#\1$pkgdir\2#" config.mk || return 1
- sed -i "s#\(mandir = \)\(.*\)#\1$pkgdir\2#" config.mk || return 1
+ 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 || return 1
- make DESTDIR="$pkgdir" install || return 1
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
}