From 8cb3de1669549474203564e712d3aa1e687b79f9 Mon Sep 17 00:00:00 2001 From: David P Date: Tue, 31 Oct 2017 21:01:05 -0300 Subject: Fix pcr/gforth What a crappy PKGBUILD it was --- pcr/gforth/gforth.install | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'pcr/gforth/gforth.install') diff --git a/pcr/gforth/gforth.install b/pcr/gforth/gforth.install index 856966e20..6dd89441a 100644 --- a/pcr/gforth/gforth.install +++ b/pcr/gforth/gforth.install @@ -1,5 +1,18 @@ +infodir=/usr/share/info +filelist=(gforth.info vmgen.info) + post_install() { - echo "Running post-install libtool..." - libtool --finish /usr/lib/gforth/0.7.3/libcc-named/ - echo "Done!" -} \ No newline at end of file + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} -- cgit v1.2.3