mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 02:27:13 +08:00
52 lines
1.6 KiB
Bash
52 lines
1.6 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
|
|
pkgname=gnuplot
|
|
pkgver=4.6.4
|
|
pkgrel=2
|
|
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' 'lua' 'qt')
|
|
makedepends=('texinfo' 'texlive-core' 'emacs-nox' 'texlive-latexextra' 'gnutls')
|
|
options=('!makeflags')
|
|
install=gnuplot.install
|
|
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
|
|
sha1sums=('54ee5ce9a0a2698b046064bd275e772673350013')
|
|
|
|
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 -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
|
|
|
|
./configure --prefix=/usr \
|
|
--libexecdir=/usr/bin \
|
|
--with-gihdir=/usr/share/gnuplot \
|
|
--with-readline=gnu \
|
|
--enable-qt
|
|
make pkglibexecdir=/usr/bin
|
|
}
|
|
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
msg "Installing core files"
|
|
make pkglibexecdir=/usr/bin DESTDIR="$pkgdir" install
|
|
|
|
msg "Installing info files"
|
|
make pkglibexecdir=/usr/bin DESTDIR="$pkgdir" install-info
|
|
|
|
install -Dm644 lisp/dotemacs "$pkgdir/usr/share/emacs/site-lisp/dotemacs"
|
|
install -Dm644 Copyright $pkgdir/usr/share/licenses/$pkgname/Copyright
|
|
|
|
rm -f $pkgdir/usr/share/texmf-dist/ls-R
|
|
}
|