mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-24 18:12:13 +08:00
cb3d877456
new wxgtk version 3.0
34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
pkgname=wxmaxima
|
|
pkgver=13.04.2
|
|
pkgrel=3
|
|
pkgdesc="A wxWidgets GUI for the computer algebra system Maxima"
|
|
arch=('x86_64')
|
|
url="http://wxmaxima.sourceforge.net/"
|
|
license=('GPL2')
|
|
depends=('maxima' 'libxml2' 'wxgtk2.8' 'shared-mime-info' 'desktop-file-utils')
|
|
source=(http://downloads.sourceforge.net/$pkgname/wxMaxima-$pkgver.tar.gz)
|
|
install=wxmaxima.install
|
|
sha1sums=('9508d3badb6c339f34e73e01c5065f679329a17c')
|
|
|
|
build() {
|
|
cd "${srcdir}/wxMaxima-${pkgver}"
|
|
export WX_CONFIG_PATH=/usr/bin/wx-config-2.8
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/wxMaxima-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# Fix category in .desktop file
|
|
sed -i -e 's/Utility;X-Red-Hat-Base;X-Red-Hat-Base-Only;/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/"
|
|
}
|