[arch-commits] Commit in maxima/trunk (PKGBUILD maxima.install)
Ronald van Haren
ronald at archlinux.org
Fri Sep 26 08:07:19 UTC 2008
Date: Friday, September 26, 2008 @ 04:07:19
Author: ronald
Revision: 13306
upgpkg: maxima 5.16.3-2
Modified:
maxima/trunk/PKGBUILD
maxima/trunk/maxima.install
----------------+
PKGBUILD | 4 ++++
maxima.install | 33 ++++++++++++++++++++++-----------
2 files changed, 26 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-09-26 08:06:51 UTC (rev 13305)
+++ PKGBUILD 2008-09-26 08:07:19 UTC (rev 13306)
@@ -36,6 +36,10 @@
install -d $pkgdir/usr/share/pixmaps/
ln -s /usr/share/maxima/${pkgver}/xmaxima/maxima-new.png \
$pkgdir/usr/share/pixmaps/${pkgname}.png
+
+# remove /usr/share/info/dir file
+ rm -f $pkgdir/usr/share/info/dir
+
}
Modified: maxima.install
===================================================================
--- maxima.install 2008-09-26 08:06:51 UTC (rev 13305)
+++ maxima.install 2008-09-26 08:07:19 UTC (rev 13306)
@@ -1,15 +1,26 @@
-# arg 1: the new package version
-post_install() {
+ infodir=/usr/share/info
+ filelist=(imaxima.info maxima.info xmaxima.info)
+
+ post_install() {
echo "update desktop and mime database..."
update-desktop-database
-}
-# arg 1: the new package version
-# arg 2: the old package version
-post_upgrade() {
- post_install $1
-}
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
-post_remove() {
- post_install $1
-}
+ }
+
+ post_upgrade() {
+ post_install $1
+ }
+
+ post_remove() {
+ echo "update desktop and mime database..."
+ update-desktop-database
+
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+
+ }
More information about the arch-commits
mailing list