1 # Edited for git by: ilikenwf <parwok@gmail.com>
2 # Maintainer: ilikenwf/Matt Parnell <parwok@gmail.com>
3 # Contributor: joyfulgirl <joyfulgirl (at) archlinux.us>
8 pkgdesc="Statistical analysis program"
10 url="http://www.gnu.org/software/pspp/"
12 depends=('gsl' 'plotutils' 'pkgconfig' 'texinfo')
13 makedepends=('perl' 'gperf')
14 optdepends=('plotutils: only if you checkout and build from "output" branch'
15 'postgresql-libs: PG database support'
16 'zlib: GNUmeric support'
17 'libxml2: GNUMERIC support')
22 _gitroot="git://git.sv.gnu.org/pspp.git"
26 export CFLAGS="$CFLAGS -I/opt/mesa-xgl-cvs/include"
28 msg "Connecting to GIT server...."
30 if [ -d ${srcdir}/$_gitname ] ; then
31 cd $_gitname && git pull origin
32 msg "The local files are updated."
37 if [ -d ${srcdir}/gnulib ] ; then
38 cd ${srcdir}/gnulib && git pull origin
41 git clone git://git.sv.gnu.org/gnulib.git
44 msg "GIT checkout done or server timeout"
45 msg "Starting make..."
48 rm -rf ${srcdir}/$_gitname-build
49 cp -a ${srcdir}/$_gitname ${srcdir}/$_gitname-build
51 cd ${srcdir}/$_gitname-build
54 make -f Smake || return 1
58 ./configure --prefix=/usr --sysconfdir=/etc || return 1
60 make DESTDIR=$pkgdir install || return 1
62 rm -f ${pkgdir}/usr/share/info/dir
64 if [[ -x $(which emacs) ]]; then
65 emacs -Q --batch --eval '(byte-compile-file "pspp-mode.el")'
66 install -d ${pkgdir}/usr/share/emacs/site-lisp/pspp
67 install -m 644 -t ${pkgdir}/usr/share/emacs/site-lisp/pspp \