blob: 1eded2cfe6b03a99bb1e2737812b853fd821d747 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# 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' 'engauge-samples')
pkgbase='engauge'
pkgver=12.1
pkgrel=2
epoch=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')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/markummitchell/$_pkgbase/archive/v$pkgver.tar.gz"
"$pkgbase.sh"
"$pkgbase.desktop")
sha256sums=('b553c71ad8b5565a42ae0ba58891d27ac47ca27cc6d7a442c979b56b1fbda282'
'4b36a8aa23c5a95a552d33ce1bd75aa1a0be5fdf9ef06f321a060c753298dd18'
'1b3f2675058693d5653b5aee50fbec1530791de5fcdfbb2f86056a5d748695a4')
install=engauge.install
options=('!makeflags')
build() {
cd ${_pkgbase}-$pkgver
export OPENJPEG_INCLUDE=$(pkg-config --variable includedir libopenjp2) OPENJPEG_LIB=/usr/lib
export POPPLER_INCLUDE=$(pkg-config --cflags-only-I poppler-qt5 | cut -d ' ' -f 1 | sed 's/^-I//') POPPLER_LIB=/usr/lib
qmake-qt5 engauge.pro "CONFIG+=pdf jpeg2000"
make
lrelease engauge.pro
}
package_engauge() {
pkgdesc="Extracts data points from images of graphs"
depends=('qt5-tools' 'fftw' 'log4cpp' 'libpng' 'libjpeg-turbo' 'openjpeg2' 'poppler-qt5')
cd ${_pkgbase}-$pkgver
install -Dm755 ../$pkgbase.sh "$pkgdir"/usr/bin/$pkgbase
install -Dm755 bin/$pkgbase "$pkgdir"/usr/lib/$_pkgbase/$pkgbase
# 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() {
pkgdesc="sample image files for engauge copied into the doc subdirectory"
arch=('any')
cd ${_pkgbase}-$pkgver
install -d "$pkgdir"/usr/share/doc/$_pkgbase
cp -r samples "$pkgdir"/usr/share/doc/$_pkgbase
}
|