summaryrefslogtreecommitdiffstats
path: root/abs/extra/gnuplot/PKGBUILD
blob: ec372f08f7d1a955cb170a69671f047f5edd48f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id$
# Maintainer: damir <damir@archlinux.org>
# Contributor: Niklas Volbers <mithrandir42@web.de>

pkgname=gnuplot
pkgver=4.2.5
pkgrel=1
pkgdesc="Command-line driven interactive data and function plotting utility"
url="http://www.gnuplot.info"
depends=('gd>=2.0.29' 'wxgtk' 'libjpeg>=7')
makedepends=('texinfo')
license='custom'
arch=('i686')
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
md5sums=(85d042f8efd7aae3d9cbfd85b14d06d2)

build() {
  cd $startdir/src/$pkgname-$pkgver

  ./configure --prefix=/usr \
    --datadir=/usr/share \
    --libexecdir=/usr/bin \
    --with-readline=gnu \
    --enable-history-file \
    --with-x

   make X11_DRIVER_DIR='/usr/bin' || return 1

   make DESTDIR=$startdir/pkg \
      libexecdir=/usr/bin \
      pkglibexecdir=/usr/bin install

   install -D $startdir/src/$pkgname-$pkgver/Copyright $startdir/pkg/usr/share/licenses/custom/gnuplot/Copyright
}