diff options
author | root <root@rshg054.dnsready.net> | 2012-11-18 02:17:27 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-11-18 02:17:27 -0800 |
commit | ab63d8d49f68847a68c2ba0014bf0d3338cb3df6 (patch) | |
tree | 7f0d9cf1b60a9b65a36c3f58ab2164c62cb378f1 /extra/latex2rtf | |
parent | 071ecd58a9b69020ec170e7f89009a603e885371 (diff) |
Sun Nov 18 02:15:18 PST 2012
Diffstat (limited to 'extra/latex2rtf')
-rw-r--r-- | extra/latex2rtf/PKGBUILD | 11 | ||||
-rw-r--r-- | extra/latex2rtf/latex2rtf.install | 16 |
2 files changed, 22 insertions, 5 deletions
diff --git a/extra/latex2rtf/PKGBUILD b/extra/latex2rtf/PKGBUILD index ffdbb3d13..c7d15c6c7 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') 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 +} |