summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba444578deb2bc1e61e07973e712e24b841f0f8a (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
60
61
62
63
64
65
66
67
# Maintainer: Lukasz Pozarlik <lpozarlik@gmail.com>

_name="apts"
_module="$_name"

pkgname=("python-$_module")
#pkgname=("python-$_module" "python2-$_module") 
pkgdesc="Set of tools for automatic astrophotography images acquisition and processing"
pkgver=0.2.28
pkgrel=2
url="https://github.com/pozar87/apts"
license=('Apache 2')
arch=('any')
makedepends=('python-pbr'
             'python-matplotlib'
             'python-numpy'
             'python-pandas'
             'python-pyephem'
             'python-igraph'
             'python-pint'
             'python-seaborn'
             'python-cairo'
             'python-pytz'
             'pyside2'
             'python-aenum'
             'python-svgwrite'
             'python-timezonefinder'
             'python-requests-cache')
source=("https://github.com/pozar87/apts/archive/v$pkgver.tar.gz")
md5sums=('c01f11396bd43a3c15c0cce68c4cd51d')

build() {
    cd "$_name-$pkgver"
    python setup.py build
#    python2 setup.py build
}

package_python-apts(){
    depends=('python-matplotlib'
             'python-numpy'
             'python-pandas'
             'python-pyephem'
             'python-igraph'
             'python-pint'
             'python-seaborn'
             'python-cairo'
             'python-pytz'
             'pyside2'
             'python-aenum'
             'python-timezonefinder'
             'python-requests-cache')
    cd "$_name-$pkgver"
    python setup.py install --root="${pkgdir}/" --optimize=1
    install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}

#package_python2-apts(){
#    depends=('python2-configparser'
#             'python2-igraph'
#             'python2-ephem'
#             'python2-pandas'
#             'python2-pint')
#    cd "$_name-$pkgver"             
#    python2 setup.py install --root="${pkgdir}/" --optimize=1
#    install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENCE
#}