gtk/wxmaxima/PKGBUILD

38 lines
1.1 KiB
Bash
Raw Normal View History

2013-04-28 07:59:03 +08:00
pkgname=wxmaxima
2013-04-30 03:45:21 +08:00
pkgver=13.04.0
pkgrel=1
2013-04-28 07:59:03 +08:00
pkgdesc="A wxWidgets GUI for the computer algebra system Maxima"
arch=('x86_64')
url="http://wxmaxima.sourceforge.net/"
license=('GPL2')
2013-04-29 03:30:58 +08:00
depends=('maxima' 'libxml2' 'wxgtk' 'shared-mime-info' 'desktop-file-utils' 'filesystem-extra')
2013-04-30 03:45:21 +08:00
source=(http://downloads.sourceforge.net/$pkgname/wxMaxima-$pkgver.tar.gz
Makefile_locale_zh_CN.patch)
2013-04-28 07:59:03 +08:00
install=wxmaxima.install
2013-04-30 03:45:21 +08:00
sha1sums=('1dac390257a4c8424781c6b8e7d1d22ee2024449'
'e2004670c38dc2ef65586e89e1246e14dca232c2')
2013-04-28 07:59:03 +08:00
build() {
cd "${srcdir}/wxMaxima-${pkgver}"
2013-04-30 03:45:21 +08:00
patch -p1 -i "$srcdir/Makefile_locale_zh_CN.patch"
2013-04-29 03:30:58 +08:00
./configure --prefix=/extra/usr
2013-04-28 07:59:03 +08:00
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
2013-04-29 03:30:58 +08:00
install -m755 -d "${pkgdir}/extra/usr/share/applications"
install -m755 -d "${pkgdir}/extra/usr/share/pixmaps"
install -m644 wxmaxima.desktop "${pkgdir}/extra/usr/share/applications/"
install -m644 data/wxmaxima.png "${pkgdir}/extra/usr/share/pixmaps/"
2013-04-28 07:59:03 +08:00
}