summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJakub Klinkovsk√Ĺ <j.l.k@gmx.com>2019-10-20 11:21:48 +0200
committerJakub Klinkovsk√Ĺ <j.l.k@gmx.com>2019-10-20 11:22:46 +0200
commit140e72401ab8c73ff3ebde0a5fe13b8b0b516910 (patch)
tree0f08428a955a6da7687631e583ab3cbb8d6e3bf7
parent016196e4ba6fc1d77258bdf9f801bf451c9bb0b3 (diff)
switch to split packages: gnuplot-nogtk and gnuplot-noguiHEADpackages/packages/gnuplot
-rw-r--r--trunk/PKGBUILD54
1 files changed, 45 insertions, 9 deletions
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index b16c542..118b5c6 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -2,23 +2,23 @@
# Contributor: damir <damir@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
-pkgname=gnuplot
+pkgbase=gnuplot
+pkgname=(gnuplot-nogtk gnuplot-nogui)
pkgver=5.2.7
pkgrel=1
pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others"
arch=('x86_64')
-groups=('modified')
url="http://www.gnuplot.info"
license=('custom')
depends=('readline' 'gd' 'cairo' 'libjpeg' 'lua' 'qt5-svg' 'gnutls' 'libcerf')
makedepends=('texinfo' 'texlive-core' 'emacs' 'texlive-latexextra' 'qt5-tools')
-source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+source=("https://downloads.sourceforge.net/sourceforge/$pkgbase/$pkgbase-$pkgver.tar.gz"
"lua53_compat.patch")
sha1sums=('fcd54ed0b1e5d7dda8151602b7198f0040462c70'
'9005fa9e4da91ceedb8ccd1d761866e7b064f8b1')
prepare() {
- cd ${pkgname}-${pkgver}
+ cd ${pkgbase}-${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
@@ -28,12 +28,16 @@ prepare() {
src/variable.c
patch -p1 < "$srcdir"/lua53_compat.patch
+
+ mkdir build
+ mkdir build_nogui
}
build() {
- cd ${pkgname}-${pkgver}
+ pushd ${pkgbase}-${pkgver}/build
- MAKEINFO=/usr/bin/makeinfo WX_CONFIG=/usr/bin/wx-config ./configure --prefix=/usr \
+ MAKEINFO=/usr/bin/makeinfo ../configure \
+ --prefix=/usr \
--libexecdir=/usr/bin \
--with-gihdir=/usr/share/gnuplot \
--with-readline=gnu \
@@ -43,13 +47,45 @@ build() {
--without-lisp-files \
--with-texdir=/usr/share/texmf/tex/latex/gnuplot
make pkglibexecdir=/usr/bin
+
+ popd
+ pushd ${pkgbase}-${pkgver}/build_nogui
+
+ MAKEINFO=/usr/bin/makeinfo ../configure \
+ --prefix=/usr \
+ --libexecdir=/usr/bin \
+ --with-gihdir=/usr/share/gnuplot \
+ --with-readline=gnu \
+ --with-bitmap-terminals \
+ --with-qt=no \
+ --disable-wxwidgets \
+ --without-lisp-files \
+ --with-texdir=/usr/share/texmf/tex/latex/gnuplot
+ make pkglibexecdir=/usr/bin
}
-package() {
- cd ${pkgname}-${pkgver}
+package_gnuplot-nogtk() {
+ pkgname=gnuplot-nogtk
+ conflicts=('gnuplot')
+ privides=('gnuplot')
+
+ cd ${pkgbase}-${pkgver}/build
+ make pkglibexecdir=/usr/bin DESTDIR="${pkgdir}" install
+
+ install -Dm644 ../Copyright "${pkgdir}/usr/share/licenses/$pkgname/Copyright"
+
+ rm -f "${pkgdir}/usr/share/texmf-dist/ls-R"
+}
+
+package_gnuplot-nogui() {
+ pkgname=gnuplot-nogui
+ conflicts=('gnuplot')
+ depends=('readline' 'gd' 'cairo' 'libjpeg' 'lua' 'gnutls' 'libcerf' 'pango')
+
+ cd ${pkgbase}-${pkgver}/build_nogui
make pkglibexecdir=/usr/bin DESTDIR="${pkgdir}" install
- install -Dm644 Copyright "${pkgdir}/usr/share/licenses/$pkgname/Copyright"
+ install -Dm644 ../Copyright "${pkgdir}/usr/share/licenses/$pkgname/Copyright"
rm -f "${pkgdir}/usr/share/texmf-dist/ls-R"
}