diff options
author | Eric Bélanger | 2012-11-18 03:21:37 +0000 |
---|---|---|
committer | Eric Bélanger | 2012-11-18 03:21:37 +0000 |
commit | d3b6ad1da8dd7f60ac685072aaa1f75a2eab9893 (patch) | |
tree | 9d253a2884c3e84d244adec48c555e726a2e64ef | |
parent | 8e9fc9ee511ffaa25fd5b5d3a1915cbfbef5ffcd (diff) | |
download | aur-d3b6ad1da8dd7f60ac685072aaa1f75a2eab9893.tar.gz |
Fix CFGDIR value (close FS#31346), Add info pages
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | latex2rtf.install | 16 |
2 files changed, 21 insertions, 4 deletions
@@ -3,7 +3,7 @@ pkgname=latex2rtf pkgver=2.2.1c -pkgrel=1 +pkgrel=2 pkgdesc="LaTeX to RTF converter" arch=('i686' 'x86_64') url="http://latex2rtf.sourceforge.net/" @@ -14,12 +14,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() { @@ -29,6 +30,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/latex2rtf.install b/latex2rtf.install new file mode 100644 index 000000000000..8dbcca926e8a --- /dev/null +++ b/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 +} |