Date: Wednesday, April 23, 2014 @ 18:47:52
  Author: spupykin
Revision: 110059

upgpkg: catdvi 0.14-6

upd

Modified:
  catdvi/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2014-04-23 16:47:50 UTC (rev 110058)
+++ PKGBUILD    2014-04-23 16:47:52 UTC (rev 110059)
@@ -4,7 +4,7 @@
 
 pkgname=catdvi
 pkgver=0.14
-pkgrel=5
+pkgrel=6
 pkgdesc="A DVI to plain text translator"
 arch=('i686' 'x86_64')
 url="http://catdvi.sourceforge.net";
@@ -16,17 +16,15 @@
 md5sums=('b18eac65baf522c1e37bb3dc37ab42c3'
          '509f61a30d3758e5d102c124bc5fa9a0')
 
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  patch -p1 -i "${srcdir}"/texlive2008.patch
+}
+
 build() {
   cd "$srcdir/$pkgname-$pkgver"
-
-  patch -p1 -i "${srcdir}"/texlive2008.patch
   autoconf
-
   ./configure --prefix=/usr --mandir=/usr/share/man
-
-  sed -i "s#\(bindir = \)\(.*\)#\1$pkgdir\2#" config.mk
-  sed -i "s#\(mandir = \)\(.*\)#\1$pkgdir\2#" config.mk
-
   make
 }
 
@@ -33,5 +31,5 @@
 package() {
   cd "$srcdir/$pkgname-$pkgver"
   install -d $pkgdir/usr/bin $pkgdir/usr/share/man/man1
-  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install bindir=$pkgdir/usr/bin 
mandir=$pkgdir/usr/share/man
 }

Reply via email to