2010-10-12 05:08:47 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
|
|
|
|
pkgname=gnuplot
|
2013-10-25 04:37:23 +08:00
|
|
|
pkgver=4.6.4
|
2011-09-16 16:50:50 +08:00
|
|
|
pkgrel=1
|
2010-10-12 05:08:47 +08:00
|
|
|
pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.gnuplot.info"
|
|
|
|
license=('custom')
|
2013-10-25 04:37:23 +08:00
|
|
|
depends=('readline' 'gd' 'cairo' 'libjpeg' 'lua' 'qt')
|
|
|
|
makedepends=('texinfo' 'texlive-core' 'emacs-nox' 'texlive-latexextra' 'gnutls')
|
2013-08-01 21:37:47 +08:00
|
|
|
options=('!makeflags')
|
2010-10-12 05:08:47 +08:00
|
|
|
install=gnuplot.install
|
2013-10-25 04:37:23 +08:00
|
|
|
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
|
|
|
|
sha1sums=('54ee5ce9a0a2698b046064bd275e772673350013')
|
2010-10-12 05:08:47 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
|
|
|
|
# fix default source location; use the GDFONTPATH variable to modify at runtime
|
|
|
|
sed -i 's|/usr/X11R6/lib/X11/fonts/truetype|/usr/share/fonts/TTF|' src/variable.c
|
2013-08-01 21:37:47 +08:00
|
|
|
|
|
|
|
sed -i -e 's|/usr/X11R6/lib/X11/fonts/Type1|/usr/share/fonts/Type1|' \
|
|
|
|
-e 's|$(X11ROOT)/X11R6/lib/X11/fonts/Type1|$(X11ROOT)/usr/share/fonts/Type1|' \
|
|
|
|
src/variable.c
|
|
|
|
|
2010-10-12 05:08:47 +08:00
|
|
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libexecdir=/usr/bin \
|
|
|
|
--with-gihdir=/usr/share/gnuplot \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--with-readline=gnu \
|
2013-10-25 04:37:23 +08:00
|
|
|
--with-texdir=$pkgdir/usr/share/texmf/tex/latex/gnuplot \
|
|
|
|
--enable-qt
|
2010-10-12 05:08:47 +08:00
|
|
|
make pkglibexecdir=/usr/bin
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
make prefix=$pkgdir/usr libexecdir=$pkgdir/usr/bin \
|
|
|
|
mandir=$pkgdir/usr/share/man \
|
|
|
|
infodir=$pkgdir/usr/share/info \
|
|
|
|
pkglibexecdir=$pkgdir/usr/bin \
|
|
|
|
GIHDIR=$pkgdir/usr/share/gnuplot \
|
|
|
|
datadir=$pkgdir/usr/share install
|
|
|
|
|
|
|
|
install -Dm644 Copyright $pkgdir/usr/share/licenses/$pkgname/Copyright
|
|
|
|
|
|
|
|
rm -f $pkgdir/usr/share/texmf-dist/ls-R
|
|
|
|
}
|