blob: 4d6b85d0f6aa8081c990166377017dbeda6d0498 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: Juraj Fiala <doctorjellyface at riseup dot net>
_srcname=leap.bitmask
pkgname=bitmask_client
pkgver=0.9.1
pkgrel=2
pkgdesc='Encrypted communication for mere mortals.'
arch=('any')
url='https://bitmask.net/'
license=('GPL3')
depends=(
'python2-argh'
'python2-requests'
'python2-srp'
'python2-pyopenssl'
'python2-coloredlogs'
'python2-psutil'
'python2-ipaddr'
'python2-twisted'
'python2-daemon16'
'python2-keyring'
'python2-zope-proxy'
'python2-pyzmq'
'python2-txzmq'
'python2-oauth'
'python2-logbook'
'python2-pyside'
'python2-leap_soledad_client'
'python2-leap_keymanager'
'python2-leap_mail'
'python2-leap_pycommon'
)
makedepends=(
'python-pyside-tools'
)
# Disable tests for now as they fail
#checkdepends=(
#'python2-nose'
#'python2-nose-exclude'
#'python2-mock'
#'python2-coverage'
#'python2-pep8'
#'python2-flake8'
#'python2-tox'
#)
source=("https://github.com/leapcode/$pkgname/archive/$pkgver.tar.gz")
validpgpkeys=('BE23FB4A0E9DB36ECB9AB8BE23638BF72C593BC1')
sha256sums=('7e907adeef60c61378c505d29f69d1cf777495215b356ce7ea3b0dc2b5c70dab')
prepare() {
# Workaround version acquire fail
mv "$srcdir/$pkgname-$pkgver" "$srcdir/$_srcname-$pkgver"
cd "$srcdir/$_srcname-$pkgver"
# Install to /usr/bin instead of /usr/sbin
sed -i 's/sbin/bin/' setup.py
# Point the tests to python2 executables
#sed -i 's/\/bin\/nosetests/\/bin\/nosetests2/' run_tests.sh
#sed -i 's/flake8/flake8-python2/' run_tests.sh
}
build() {
cd "$srcdir/$_srcname-$pkgver"
# Qt
make
# Python
python2 setup.py build
}
#check() {
#cd "$srcdir/$_srcname-$pkgver"
#sh run_tests.sh -N
#}
package() {
cd "$srcdir/$_srcname-$pkgver"
python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
}
# vim:set ts=2 sw=2 et:
|