summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 21ea10e55e15ef0d3ceae0a575090c25423e1f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
pkgname=xyscan
pkgver=3.3.1
pkgrel=3
arch=('i686' 'x86_64')
pkgdesc='Tool to extract data points from graphical plots'
url='http://star.physics.yale.edu/~ullrich/xyscanDistributionPage/'
license=('GPL')
depends=('qt4>=4.6.0')
source=(http://star.physics.yale.edu/~ullrich/xyscanDistributionPage/3.31/$pkgname-3.31-src.tar.gz
        xyscan-$pkgver-docs.patch
        xyscan.desktop)
md5sums=('af25ded942dbfdc4e73c5f9986db6e2e'
	'22093f1c22b73f95de1cbfee14d74dc4'
	'2df01c952f8425d05e0d138778ca5be9')
install=xyscan.install

build() {
	cd $pkgname
	patch -i ../$pkgname-$pkgver-docs.patch
	qmake-qt4 -o Makefile xyscan.pro
	make
}

package() {
	cd $pkgname
	install --mode=755 -D xyscan $pkgdir/usr/bin/xyscan
	install --mode=755 --directory $pkgdir/usr/share/doc/xyscan/{en,fr}
	install --mode=644 --target-directory=$pkgdir/usr/share/doc/xyscan/en docs/en/*
	install --mode=644 --target-directory=$pkgdir/usr/share/doc/xyscan/fr docs/fr/*
	install --mode=644 -D images/xyscanIcon.png $pkgdir/usr/share/icons/hicolor/32x32/apps/xyscan.png
	if test -x /usr/bin/desktop-file-install; then
		/usr/bin/desktop-file-install --dir $pkgdir/usr/share/applications $srcdir/xyscan.desktop
	else
		install --mode=644 -D $srcdir/xyscan.desktop $pkgdir/usr/share/applications/xyscan.desktop
	fi
}