1 # Contributor: Anton Leontiev <bunder /at/ t-25.ru>
6 pkgdesc="Graphics scripting language for creating graphs, plots, diagrams and figures"
7 url="http://www.gle-graphics.org/"
9 makedepends=("qt" "openssl" "libtiff" "libpng" "libjpeg" "zlib"
10 "ghostscript" "texlive-bin" "texlive-core" "texlive-latexextra")
11 depends=("libtiff" "libjpeg" "libpng" "ghostscript")
12 optdepends=("texlive: latex labels in gle scripts" "qt: qgle")
13 source=(http://prdownloads.sourceforge.net/glx/gle-graphics-${pkgver}f-src.tar.gz qt.patch)
14 md5sums=("1c582a64d3efd518db98b268cd0cda6f" "6372f0a6f85bfe6ee5e89d5d33910cdd")
15 install=gle-graphics.install
18 cd $srcdir/$pkgname-$pkgver
21 patch -p1 -i $srcdir/qt.patch
22 sed -i -e 's:GLE_INSTALL_DATA=$prefix/share/$PACKAGE_TARNAME/$GLE_VERSION:GLE_INSTALL_DATA=$prefix/share/$PACKAGE_TARNAME:' configure
23 ./configure --prefix=/usr --with-qt --with-jpeg --with-png --with-tiff --with-z\
24 --with-manip --with-libgle --with-rpath=no --with-extrafonts --with-x
27 # Add just compiled GLE to path in order to build documentation
28 set PATH=$PATH:$srcdir/$pkgname-$pkgver/build/bin
30 make DESTDIR=$pkgdir install
32 install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
33 install -D -m644 platform/autopackage/gle.png $pkgdir/usr/share/icons/hicolor/48x48/apps/gle.png
34 install -D -m644 platform/autopackage/gle.xml $pkgdir/usr/share/mime/packages/gle.xml
35 install -D -m644 platform/autopackage/gle.desktop $pkgdir/usr/share/applications/gle.desktop