[arch-commits] Commit in wxmaxima/trunk (PKGBUILD wxmaxima.install)
Ronald van Haren
ronald at archlinux.org
Thu Oct 15 12:16:49 UTC 2015
Date: Thursday, October 15, 2015 @ 14:16:49
Author: ronald
Revision: 249366
upgpkg: wxmaxima 15.08.2-1
update to 15.08.2; build against wxgtk version 3: FS#45926
Modified:
wxmaxima/trunk/PKGBUILD
wxmaxima/trunk/wxmaxima.install
------------------+
PKGBUILD | 18 ++++++------------
wxmaxima.install | 14 +++++++++++++-
2 files changed, 19 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-10-15 12:01:14 UTC (rev 249365)
+++ PKGBUILD 2015-10-15 12:16:49 UTC (rev 249366)
@@ -1,23 +1,23 @@
-# $Id: PKGBUILD,v 1.10 2008/05/13 19:03:39 ronald Exp $
+ $Id: PKGBUILD,v 1.10 2008/05/13 19:03:39 ronald Exp $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Angelo Theodorou <encelo at users.sourceforge.net>
# Contributor: Vinay S Shastry <vinayshastry at gmail.com>
pkgname=wxmaxima
-pkgver=14.12.0
+pkgver=15.08.2
pkgrel=1
pkgdesc="A wxWidgets GUI for the computer algebra system Maxima"
arch=('i686' 'x86_64')
url="http://wxmaxima.sourceforge.net/"
license=('GPL2')
-depends=('maxima' 'libxml2' 'wxgtk2.8' 'shared-mime-info' 'desktop-file-utils')
+depends=('maxima' 'libxml2' 'wxgtk' 'shared-mime-info' 'desktop-file-utils')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
install=wxmaxima.install
-sha1sums=('e650c7f2754f6294183cae9134813f25ce65d215')
+sha1sums=('e365334527759a8e483f886bd85112d42791f9c2')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- export WX_CONFIG_PATH=/usr/bin/wx-config-2.8
+ export WX_CONFIG_PATH=/usr/bin/wx-config
./configure --prefix=/usr
make
}
@@ -28,11 +28,5 @@
make DESTDIR="${pkgdir}" install
# Fix category in .desktop file
- sed -i '/Categories=/c\Categories=Science;Math;' wxmaxima.desktop
-
- # Install desktop file and icon
- install -m755 -d "${pkgdir}/usr/share/applications"
- install -m755 -d "${pkgdir}/usr/share/pixmaps"
- install -m644 wxmaxima.desktop "${pkgdir}/usr/share/applications/"
- install -m644 data/wxmaxima.png "${pkgdir}/usr/share/pixmaps/"
+ sed -i '/Categories=/c\Categories=Science;Math;' data/wxMaxima.desktop
}
Modified: wxmaxima.install
===================================================================
--- wxmaxima.install 2015-10-15 12:01:14 UTC (rev 249365)
+++ wxmaxima.install 2015-10-15 12:16:49 UTC (rev 249366)
@@ -1,6 +1,13 @@
+infodir=/usr/share/info
+filelist=(wxmaxima.info.gz)
+
post_install() {
update-desktop-database -q
update-mime-database usr/share/mime
+
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
}
post_upgrade() {
@@ -8,7 +15,12 @@
}
post_remove () {
- post_install
+ update-desktop-database -q
+ update-mime-database usr/share/mime
+
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
}
More information about the arch-commits
mailing list