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)
14 md5sums=("acf8da59c10105c92c35c3e363d00bba")
15 install=gle-graphics.install
18 cd $srcdir/$pkgname-$pkgver
21 sed -i -e 's:GLE_INSTALL_DATA=$prefix/share/$PACKAGE_TARNAME/$GLE_VERSION:GLE_INSTALL_DATA=$prefix/share/$PACKAGE_TARNAME:' configure
22 ./configure --prefix=/usr --with-qt --with-jpeg --with-png --with-tiff --with-z\
23 --with-manip --with-libgle --with-rpath=no --with-extrafonts --with-x
26 # Add just compiled GLE to path in order to build documentation
27 set PATH=$PATH:$srcdir/$pkgname-$pkgver/build/bin
29 make DESTDIR=$pkgdir install
31 install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
32 install -D -m644 platform/autopackage/gle.png $pkgdir/usr/share/icons/hicolor/48x48/apps/gle.png
33 install -D -m644 platform/autopackage/gle.xml $pkgdir/usr/share/mime/packages/gle.xml
34 install -D -m644 platform/autopackage/gle.desktop $pkgdir/usr/share/applications/gle.desktop