blob: da69bf0e7490f17ff485a6beb3f12ebec727522e (
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
|
# Maintainer: David Mehren <david.mehren@udo.edu>
pkgname=sdaps-git
pkgver=r986.90b1a26
pkgrel=1
pkgdesc="Scripts for data acquisition with paper based surveys"
arch=('any')
url="https://github.com/sdaps/sdaps"
license=('GPL3' 'LPPLv1.3c+')
depends=('python-cairo' 'texlive-latexextra' 'texlive-pictures' 'zbar' 'python-reportlab' 'pdftk')
makedepends=('git' 'python-distutils-extra' 'libtiff')
optdepends=('opencv: Import of other image formats (convert, add --convert)'
'poppler-glib: Import of other image formats (convert, add --convert)'
'hdf5: Import of other image formats (convert, add --convert)'
'gtkglext: Import of other image formats (convert, add --convert)'
'python-numpy: Import of other image formats (convert, add --convert)'
'python-gobject: Import of other image formats (convert, add --convert)'
)
checkdepends=('opencv'
'poppler-glib'
'hdf5'
'gtkglext'
'python-gobject'
'python-numpy'
'texlive-science'
)
source=('git+https://github.com/sdaps/sdaps.git'
'git+https://github.com/sdaps/sdaps-class.git')
md5sums=('SKIP'
'SKIP')
pkgver() {
cd "$srcdir/sdaps"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/sdaps"
git submodule init
git config submodule.sdaps-class.url $srcdir/sdaps-class
git submodule update
}
build() {
cd "$srcdir/sdaps"
python setup.py build
}
check() {
cd "$srcdir/sdaps/test"
./run-test-locally.sh
}
package() {
cd "$srcdir/sdaps"
python setup.py install --root="$pkgdir/" --optimize=1
mkdir -p $pkgdir/usr/share/texmf/tex/latex/sdaps
cp $pkgdir/usr/share/sdaps/tex/* $pkgdir/usr/share/texmf/tex/latex/sdaps
}
|