summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAnton Leontiev2013-08-23 16:58:29 +0400
committerAnton Leontiev2015-02-15 07:48:01 +0300
commit9b0db61f58c1eab840e81dee577f1afdabce24b2 (patch)
treeefd8315eeacc37b1da5bc78cf5d8c78bbd1c5d99 /PKGBUILD
downloadaur-9b0db61f58c1eab840e81dee577f1afdabce24b2.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a6142ffc6b9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
+pkgname=xyscan
+pkgver=3.3.1
+pkgrel=2
+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 "$srcdir/$pkgname"
+ patch -i "$srcdir/$pkgname-$pkgver-docs.patch"
+ qmake -o Makefile xyscan.pro
+ make
+}
+
+package() {
+ cd "$srcdir/$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
+}