updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gle-graphics / PKGBUILD
blobe7a04628914456a11e5f80e4d7aeed0f6ba1e01a
1 # Contributor: Anton Leontiev <bunder /at/ t-25.ru>
2 pkgname=gle-graphics
3 pkgver=4.2.4b
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)
14 md5sums=("acf8da59c10105c92c35c3e363d00bba")
15 install=gle-graphics.install
17 build() {
18         cd $srcdir/$pkgname-$pkgver
20         unset MAKEFLAGS
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
24         make
26         # Add just compiled GLE to path in order to build documentation
27         set PATH=$PATH:$srcdir/$pkgname-$pkgver/build/bin
28         make doc
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