Commit 744104ae authored by Antonio Rojas's avatar Antonio Rojas
Browse files

Hooks

parent 38575333
......@@ -2,7 +2,7 @@
pkgname=a2ps
pkgver=4.14
pkgrel=6
pkgrel=7
pkgdesc="An Any to PostScript filter"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/a2ps/"
......@@ -10,7 +10,6 @@ license=('GPL3')
depends=('psutils' 'imagemagick')
makedepends=('gperf')
backup=('etc/a2ps/a2ps.cfg' 'etc/a2ps/a2ps-site.cfg')
install=a2ps.install
source=(ftp://ftp.gnu.org/gnu/a2ps/${pkgname}-${pkgver}.tar.gz{,.sig}
a2ps-4.13c-fnmatch-replacement.patch a2ps-4.13c-emacs.patch
a2ps-4.13-manpage-chmod.patch a2ps-4.14-check-mempcpy.patch
......
infodir=/usr/share/info
filelist=(a2ps.info.gz ogonkify.info.gz regex.info.gz)
post_install() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info $infodir/$file $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment