PKGBUILDs/core/libgcrypt/libgcrypt.install

21 lines
412 B
Text
Raw Normal View History

2009-09-26 16:30:17 +00:00
infodir=/opt/share/info
2009-09-26 14:35:50 +00:00
filelist=(gcrypt.info)
post_install() {
2009-09-26 16:30:17 +00:00
[ -x opt/bin/install-info ] || return 0
2009-09-26 14:35:50 +00:00
for file in ${filelist[@]}; do
install-info $infodir/$file $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
2009-09-26 16:30:17 +00:00
[ -x opt/bin/install-info ] || return 0
2009-09-26 14:35:50 +00:00
for file in ${filelist[@]}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
}