summaryrefslogtreecommitdiff
path: root/extra/latex2rtf
diff options
context:
space:
mode:
Diffstat (limited to 'extra/latex2rtf')
-rw-r--r--extra/latex2rtf/PKGBUILD11
-rw-r--r--extra/latex2rtf/latex2rtf.install16
2 files changed, 22 insertions, 5 deletions
diff --git a/extra/latex2rtf/PKGBUILD b/extra/latex2rtf/PKGBUILD
index 31638e319..b2032ff4f 100644
--- a/extra/latex2rtf/PKGBUILD
+++ b/extra/latex2rtf/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 164721 2012-08-04 06:54:39Z remy $
+# $Id: PKGBUILD 171488 2012-11-18 03:22:38Z eric $
# Maintainer: Rémy Oudompheng <remy@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
pkgname=latex2rtf
pkgver=2.2.1c
-pkgrel=1
+pkgrel=2
pkgdesc="LaTeX to RTF converter"
arch=('i686' 'x86_64' 'mips64el')
url="http://latex2rtf.sourceforge.net/"
@@ -15,12 +15,13 @@ checkdepends=(
'texlive-core'
'texlive-latexextra' # for a4wide package
)
+install=latex2rtf.install
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
sha1sums=('3fd5874de8988cf45f8862d2b3db8ed13a04caa4')
build() {
cd "${srcdir}/${pkgname}-2.2.1"
- make
+ make DESTDIR=/usr
}
check() {
@@ -30,6 +31,6 @@ check() {
package() {
cd "${srcdir}/${pkgname}-2.2.1"
- make DESTDIR=${pkgdir}/usr install
- sed -i -e 's|error "no input file specified"| echo "error: no input file specified"|' ${pkgdir}/usr/bin/latex2png
+ make DESTDIR="${pkgdir}/usr" install install-info
+ sed -i -e 's|error "no input file specified"| echo "error: no input file specified"|' "${pkgdir}/usr/bin/latex2png"
}
diff --git a/extra/latex2rtf/latex2rtf.install b/extra/latex2rtf/latex2rtf.install
new file mode 100644
index 000000000..8dbcca926
--- /dev/null
+++ b/extra/latex2rtf/latex2rtf.install
@@ -0,0 +1,16 @@
+infodir=usr/share/info
+file=latex2rtf.info
+
+post_install() {
+ [[ -x usr/bin/install-info ]] || return 0
+ install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x usr/bin/install-info ]] || return 0
+ install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+}