[arch-commits] Commit in maxima/repos (3 files)
Ronald van Haren
ronald at archlinux.org
Fri Sep 26 08:08:27 UTC 2008
Date: Friday, September 26, 2008 @ 04:08:26
Author: ronald
Revision: 13308
Merged revisions 13306 via svnmerge from
svn+ssh://archlinux.org/home/svn-packages/maxima/trunk
........
r13306 | ronald | 2008-09-26 10:07:19 +0200 (Fri, 26 Sep 2008) | 1 line
upgpkg: maxima 5.16.3-2
........
Modified:
maxima/repos/extra-x86_64/ (properties)
maxima/repos/extra-x86_64/PKGBUILD
maxima/repos/extra-x86_64/maxima.install
----------------+
PKGBUILD | 4 ++++
maxima.install | 33 ++++++++++++++++++++++-----------
2 files changed, 26 insertions(+), 11 deletions(-)
Property changes on: maxima/repos/extra-x86_64
___________________________________________________________________
Name: svnmerge-integrated
- /maxima/trunk:1-13036
+ /maxima/trunk:1-13306
Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD 2008-09-26 08:07:34 UTC (rev 13307)
+++ extra-x86_64/PKGBUILD 2008-09-26 08:08:26 UTC (rev 13308)
@@ -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: extra-x86_64/maxima.install
===================================================================
--- extra-x86_64/maxima.install 2008-09-26 08:07:34 UTC (rev 13307)
+++ extra-x86_64/maxima.install 2008-09-26 08:08:26 UTC (rev 13308)
@@ -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