updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / xyscan / PKGBUILD
bloba0a7de6fcdc33ebd696e3037f8ae0d3e2ca886e6
1 # Contributor: Anton Leontiev <bunder /at/ t-25.ru>
2 pkgname=xyscan
3 pkgver=3.3.1
4 pkgrel=1
5 arch=("i686" "x86_64")
6 pkgdesc="Tool to extract data points from graphical plots"
7 url="http://star.physics.yale.edu/~ullrich/xyscanDistributionPage/"
8 license=("GPL")
9 depends=("qt>=4.6.0")
10 source=(http://star.physics.yale.edu/~ullrich/xyscanDistributionPage/3.31/$pkgname-3.31-src.tar.gz
11         xyscan-3.3.1-docs.patch
12         xyscan.desktop)
13 md5sums=("af25ded942dbfdc4e73c5f9986db6e2e"
14          "22093f1c22b73f95de1cbfee14d74dc4"
15          "2df01c952f8425d05e0d138778ca5be9")
16 install=xyscan.install
18 build() {
19   cd "$srcdir/$pkgname"
20   patch -i "$srcdir/$pkgname-$pkgver-docs.patch"
21   qmake -o Makefile xyscan.pro
22   make
25 package() {
26   cd "$srcdir/$pkgname"
27   install --mode=755 -D xyscan $pkgdir/usr/bin/xyscan
28   install --mode=755 --directory $pkgdir/usr/share/doc/xyscan/{en,fr}
29   install --mode=644 --target-directory=$pkgdir/usr/share/doc/xyscan/en docs/en/*
30   install --mode=644 --target-directory=$pkgdir/usr/share/doc/xyscan/fr docs/fr/*
31   install --mode=644 -D images/xyscanIcon.png $pkgdir/usr/share/icons/hicolor/32x32/apps/xyscan.png
32   if test -x /usr/bin/desktop-file-install; then
33     /usr/bin/desktop-file-install --dir $pkgdir/usr/share/applications $srcdir/xyscan.desktop
34   else
35     install --mode=644 -D $srcdir/xyscan.desktop $pkgdir/usr/share/applications/xyscan.desktop
36   fi