summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2019-04-21 23:19:06 +0200
committerhaawda2019-04-21 23:19:06 +0200
commit8c48ecb5d28a7d96737c466ac0e06043b134e2fe (patch)
treebf32c2577afc4abc9b9515dc56defbebdc6425c3
downloadaur-8c48ecb5d28a7d96737c466ac0e06043b134e2fe.tar.gz
initial upload
-rw-r--r--.SRCINFO37
-rw-r--r--PKGBUILD61
-rw-r--r--engauge.desktop8
-rw-r--r--engauge.install6
-rw-r--r--engauge.sh3
5 files changed, 115 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..462c3d91a26
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,37 @@
+pkgbase = engauge-git
+ pkgver = 11.r10.gf5000cde
+ pkgrel = 1
+ url = http://markummitchell.github.io/engauge-digitizer/
+ install = engauge.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = qt5-tools
+ makedepends = fftw
+ makedepends = log4cpp
+ makedepends = libjpeg-turbo
+ makedepends = libpng
+ makedepends = openjpeg2
+ makedepends = poppler-qt5
+ makedepends = git
+ source = git+https://github.com/markummitchell/engauge-digitizer.git
+ source = engauge.sh
+ source = engauge.desktop
+ sha256sums = SKIP
+ sha256sums = 4b36a8aa23c5a95a552d33ce1bd75aa1a0be5fdf9ef06f321a060c753298dd18
+ sha256sums = 1b3f2675058693d5653b5aee50fbec1530791de5fcdfbb2f86056a5d748695a4
+
+pkgname = engauge-git
+ pkgdesc = Extracts data points from images of graphs
+ depends = qt5-tools
+ depends = fftw
+ depends = log4cpp
+ depends = libpng
+ depends = libjpeg-turbo
+ depends = openjpeg2
+ depends = poppler-qt5
+
+pkgname = engauge-samples-git
+ pkgdesc = sample image files for engauge copied into the doc subdirectory
+ arch = any
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c1d8720faab
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+# Maintainer: shmilee <shmilee.zju at gmail dot com>
+# Contributor: mcmillan <awmcmillan at gmail dot com>
+
+_pkgbase='engauge-digitizer'
+pkgname=('engauge-git' 'engauge-samples-git')
+pkgbase=engauge-git
+pkgver=11.r10.gf5000cde
+pkgrel=1
+url="http://markummitchell.github.io/engauge-digitizer/"
+arch=('i686' 'x86_64')
+license=('GPL')
+makedepends=('qt5-tools' 'fftw' 'log4cpp' 'libjpeg-turbo' 'libpng' 'openjpeg2' 'poppler-qt5' 'git')
+source=("git+https://github.com/markummitchell/${_pkgbase}.git"
+ "${pkgbase%-git}.sh"
+ "${pkgbase%-git}.desktop")
+sha256sums=('SKIP'
+ '4b36a8aa23c5a95a552d33ce1bd75aa1a0be5fdf9ef06f321a060c753298dd18'
+ '1b3f2675058693d5653b5aee50fbec1530791de5fcdfbb2f86056a5d748695a4')
+install=engauge.install
+
+pkgver() {
+ cd "$_pkgbase"
+ git describe --tags --long | sed 's+-+.r+'|tr - .|cut -c2-
+}
+
+build() {
+ cd ${_pkgbase}
+ export OPENJPEG_INCLUDE=/usr/include/openjpeg-2.3 OPENJPEG_LIB=/usr/lib
+ export POPPLER_INCLUDE=/usr/include/poppler/qt5 POPPLER_LIB=/usr/lib
+ qmake-qt5 engauge.pro "CONFIG+=pdf"
+ make -j2
+ lrelease engauge.pro
+}
+
+package_engauge-git() {
+ pkgdesc="Extracts data points from images of graphs"
+ depends=('qt5-tools' 'fftw' 'log4cpp' 'libpng' 'libjpeg-turbo' 'openjpeg2' 'poppler-qt5')
+
+ cd ${_pkgbase}
+ install -Dm755 ../${pkgbase%-git}.sh "$pkgdir"/usr/bin/${pkgbase%-git}
+ install -Dm755 bin/${pkgbase%-git} "$pkgdir"/usr/lib/$_pkgbase/${pkgbase%-git}
+ # translations
+ install -dm755 "$pkgdir"/usr/lib/$_pkgbase/translations/
+ install -Dm64 translations/*.qm -t "$pkgdir"/usr/lib/$_pkgbase/translations/
+ # icon
+ install -Dm644 src/img/$_pkgbase.svg \
+ "$pkgdir"/usr/share/icons/$_pkgbase.svg
+ # desktop
+ install -Dm644 "$srcdir"/${pkgbase%-git}.desktop \
+ "$pkgdir"/usr/share/applications/${pkgbase%-git}.desktop
+}
+
+package_engauge-samples-git() {
+ pkgdesc="sample image files for engauge copied into the doc subdirectory"
+ arch=('any')
+
+ cd ${_pkgbase}
+ install -d "$pkgdir"/usr/share/doc/$_pkgbase
+ cp -r samples "$pkgdir"/usr/share/doc/$_pkgbase
+}
diff --git a/engauge.desktop b/engauge.desktop
new file mode 100644
index 00000000000..659a8b817f3
--- /dev/null
+++ b/engauge.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Engauge
+Comment=A Digitizer for curves and scanned plots.
+Exec=engauge
+Icon=engauge-digitizer
+Terminal=0
+Type=Application
+Categories=Education;Science;Math;
diff --git a/engauge.install b/engauge.install
new file mode 100644
index 00000000000..7117e312b9d
--- /dev/null
+++ b/engauge.install
@@ -0,0 +1,6 @@
+post_install() {
+ echo "If you want several sample image files that may be imported into Engauge Digitizer, "
+ echo "please install engauge-samples:"
+ echo "sudo pacman -S engauge-samples"
+ echo "The files are in directory /usr/share/doc/engauge-digitizer/samples/"
+}
diff --git a/engauge.sh b/engauge.sh
new file mode 100644
index 00000000000..037ddf740de
--- /dev/null
+++ b/engauge.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+cd /usr/lib/engauge-digitizer
+./engauge "$@"