diff options
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 52 | ||||
-rw-r--r-- | engauge-digitizer.desktop | 8 | ||||
-rw-r--r-- | engauge-digitizer.sh | 3 |
4 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..648625dc7593 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +# Generated by mksrcinfo v8 +# 四 4月 6 08:58:11 UTC 2017 +pkgbase = engauge-digitizer + pkgdesc = Extracts data points from images of graphs - with jpeg2000 and PDF support + pkgver = 10.0 + pkgrel = 1 + url = http://markummitchell.github.io/engauge-digitizer/ + arch = i686 + arch = x86_64 + license = GPL + depends = qt5-tools + depends = fftw + depends = log4cpp + depends = libjpeg-turbo + depends = libpng + depends = openjpeg2 + depends = poppler-qt5 + conflicts = engauge + source = engauge-digitizer-10.0.tar.gz::https://github.com/markummitchell/engauge-digitizer/archive/v10.0.tar.gz + source = engauge-digitizer.sh + source = engauge-digitizer.desktop + md5sums = 24ca9841ccefff0645c157e2fa72daa9 + md5sums = baa6e2963962785d145b63510ba4ee51 + md5sums = 68d9a4e7fbddd9257902725df0355a52 + +pkgname = engauge-digitizer + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..77aa67be5ecf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: shmilee <shmilee.zju at gmail dot com> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> +# Contributor: mcmillan <awmcmillan at gmail dot com> + +pkgname=engauge-digitizer +pkgver=10.0 +pkgrel=1 +pkgdesc="Extracts data points from images of graphs - with jpeg2000 and PDF support" +url="http://markummitchell.github.io/engauge-digitizer/" +arch=('i686' 'x86_64') +license=('GPL') +depends=('qt5-tools' 'fftw' 'log4cpp' 'libjpeg-turbo' 'libpng' 'openjpeg2' 'poppler-qt5') +conflicts=('engauge') +source=("${pkgname}-$pkgver.tar.gz::https://github.com/markummitchell/${pkgname}/archive/v$pkgver.tar.gz" + "${pkgname}.sh" + "${pkgname}.desktop") +md5sums=('24ca9841ccefff0645c157e2fa72daa9' + 'baa6e2963962785d145b63510ba4ee51' + '68d9a4e7fbddd9257902725df0355a52') + +build() { + cd "$srcdir/${pkgname}-$pkgver" + export OPENJPEG_INCLUDE=/usr/include/openjpeg-2.1 OPENJPEG_LIB=/usr/lib + export POPPLER_INCLUDE=/usr/include/poppler/qt5 POPPLER_LIB=/usr/lib + qmake-qt5 engauge.pro "CONFIG+=jpeg2000 pdf" + make -j2 + lrelease engauge.pro + cd help/ + ./build +} + +package() { + cd "$srcdir/${pkgname}-$pkgver" + install -Dm755 ../${pkgname}.sh "$pkgdir/usr/bin/${pkgname}" + install -Dm755 bin/engauge "$pkgdir/usr/share/${pkgname}/engauge" + + install -dm755 "$pkgdir/usr/share/${pkgname}/translations/" + cp translations/*.qm "$pkgdir/usr/share/${pkgname}/translations/" + + install -Dm644 bin/documentation/engauge.qhc \ + "$pkgdir/usr/share/${pkgname}/documentation/engauge.qhc" + install -Dm644 bin/documentation/engauge.qch \ + "$pkgdir/usr/share/${pkgname}/documentation/engauge.qch" + + install -Dm644 src/img/${pkgname}.svg \ + "$pkgdir/usr/share/icons/${pkgname}.svg" + + #cp -r samples $pkgdir/usr/share/${pkgname}/ + + install -Dm644 "$srcdir/${pkgname}.desktop" \ + "$pkgdir/usr/share/applications/${pkgname}.desktop" +} diff --git a/engauge-digitizer.desktop b/engauge-digitizer.desktop new file mode 100644 index 000000000000..37e3e429a83b --- /dev/null +++ b/engauge-digitizer.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Engauge Digitizer +Type=Application +Comment=Extract data from graphs +Exec=engauge-digitizer +Categories=Education;Science; +Icon=engauge-digitizer +Terminal=0 diff --git a/engauge-digitizer.sh b/engauge-digitizer.sh new file mode 100644 index 000000000000..71a598799477 --- /dev/null +++ b/engauge-digitizer.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +cd /usr/share/engauge-digitizer +./engauge "$@" |