updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / gle-graphics / PKGBUILD
blob4ec63056ef78b9b111a979cfa47d5eaffa5e5c6d
1 # Contributor: Anton Leontiev <bunder /at/ t-25.ru>
2 pkgname=gle-graphics
3 pkgver=4.2.4
4 pkgrel=1
5 arch=('i686' 'x86_64')
6 pkgdesc="Graphics scripting language for creating graphs, plots, diagrams and figures"
7 url="http://www.gle-graphics.org/"
8 license=("BSD" "GPL")
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
17 build() {
18         cd $srcdir/$pkgname-$pkgver
20         unset MAKEFLAGS
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
25         make
27         # Add just compiled GLE to path in order to build documentation
28         set PATH=$PATH:$srcdir/$pkgname-$pkgver/build/bin
29         make doc
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