updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / opendx / PKGBUILD
blobdd50e496ea82005efe43ef620e49be8776c36bf2
1 # $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
2 # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
4 pkgname=opendx
5 pkgver=4.4.4
6 pkgrel=2
7 pkgdesc="A uniquely powerful, full-featured software package for the visualization of scientific, engineering and analytical data"
8 arch=('i686' 'x86_64')
9 url="http://www.opendx.org/"
10 license=('custom')
11 depends=('lesstif' 'netcdf' 'imagemagick')
12 makedepends=('flex')
13 options=('!libtool' '!makeflags')
14 source=(http://www.sfr-fresh.com/unix/misc/dx-4.4.4.tar.gz opendx.desktop LICENSE)
15 md5sums=('8fe6a09faea4aa713a1540f51371b719' '9e3771c3881e1126fa74225d5525c1fa'\
16          'cb5e74007c76ca289235092e5c13e2cb')
18 build() {
19   cd ${srcdir}/dx-${pkgver}
20   # quick hack to fix compile linux/sys.h error
21   # ln -s /usr/lib/klibc/include /usr/include/klibc
22   sed -i -e 's|linux/sys.h|/usr/lib/klibc/include/linux/sys.h|' configure.ac src/exec/libdx/memory.c || return 1
23   ./configure --prefix=/usr/lib --exec-prefix=/usr/bin --with-javadx=no
24   CPPFLAGS="$CPPFLAGS -I/usr/lib/klibc/include" make || return 1
25   make DESTDIR=${pkgdir} install || return 1
26   rm -r ${pkgdir}/usr/lib/dx/{html,doc}
27   
28   # fix bin prefix
29   mv ${pkgdir}/usr/lib/bin ${pkgdir}/usr
30   
31   # install license
32   install -D -m644 ${srcdir}/dx-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
34   # install freedesktop stuff
35   install -D -m644 ${srcdir}/opendx.desktop ${pkgdir}/usr/share/applications/opendx.desktop
37   # fix manpath - ugly but it works
38   install -D -m644 ${pkgdir}/usr/lib/dx/man/manl/dx.l ${pkgdir}/usr/share/man/manl/dx.l
39   install -D -m644 ${pkgdir}/usr/lib/dx/man/catl/dx.l ${pkgdir}/usr/share/man/catl/dx.l
40   rm -R ${pkgdir}/usr/lib/dx/man
42 md5sums=('6da0c4cd21d3c08f97b7662e3aee5b7b'
43          '9e3771c3881e1126fa74225d5525c1fa'
44          'cb5e74007c76ca289235092e5c13e2cb')