mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:57:14 +08:00
54 lines
1.8 KiB
Bash
54 lines
1.8 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=gnuplot
|
|
pkgver=4.4.3
|
|
pkgrel=1
|
|
pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gnuplot.info"
|
|
license=('custom')
|
|
depends=('readline' 'gd' 'cairo' 'libjpeg')
|
|
makedepends=('texinfo' 'texlive-core' 'texlive-latexextra')
|
|
install=gnuplot.install
|
|
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
|
|
sha1sums=('a4d315b9288739e3cbaa04d8ddda7861b4009bd4')
|
|
|
|
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
|
|
sed -i 's|/X11R6/lib/X11/fonts/Type1|/usr/share/fonts/Type1|' src/variable.c
|
|
|
|
./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 \
|
|
--with-texdir=$pkgdir/usr/share/texmf/tex/latex/gnuplot
|
|
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
|
|
}
|