diff options
author | Alexander Minges | 2015-06-28 12:17:12 +0200 |
---|---|---|
committer | Alexander Minges | 2015-06-28 12:17:12 +0200 |
commit | e7aec2f651a90102f9d01e6f23cef98ecd66ebf4 (patch) | |
tree | 70f3538c944ea84e5cbe4855baa900602abedb97 /fftw2-float.install | |
download | aur-e7aec2f651a90102f9d01e6f23cef98ecd66ebf4.tar.gz |
Initial commit
Diffstat (limited to 'fftw2-float.install')
-rw-r--r-- | fftw2-float.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fftw2-float.install b/fftw2-float.install new file mode 100644 index 000000000000..dcefffc82497 --- /dev/null +++ b/fftw2-float.install @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(fftw.info fftw.info-1 fftw.info-2 fftw.info-3 fftw.info-4 fftw.info-5) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + install-info $infodir/fftw.info.gz $infodir/dir 2> /dev/null +} + +post_upgrade() { + pre_remove $1 + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + |