summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e6dec39f499c3f522536ac53e6be674ad76b82b3 (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
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: Mehmet Ozgur Bayhan <mozgurbayhan at gmail.com>
# Contributor: Thomas Quillan <tjquillan at gmail.com>
# Contributor: iboyperson <tjquillan at gmail dot com>
# Contributor: Alessandro Pazzaglia <jackdroido at gmail dot com>
pkgname=pyinstaller
pkgver=4.3
pkgrel=1
pkgdesc="Bundles a Python application and all its dependencies into a single package"
arch=('x86_64')
url="https://github.com/pyinstaller/pyinstaller"
license=('GPL')
depends=('python-altgraph' 'pyinstaller-hooks-contrib')
makedepends=('python-setuptools')
#checkdepends=('python-pytest-xdist' 'python-pytest-timeout' 'flake8' 'python-flaky'
#              'python-lxml')
#              'pytest-drop-dup-tests' 'python-tinyaes'
optdepends=('python-pycrypto: bytecode encryption support'
            'upx: executable compression support')
source=("https://pypi.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz")
sha256sums=('5ecf8bbc230d7298a796e52bb745b95eee12878d141f1645612c99246ecd23f2')

build() {
	cd "$pkgname-$pkgver"
	python setup.py build
}

#check() {
#	cd "$pkgname-$pkgver"

#	# Run only the unit and functional tests, but not the huge library test-suite
#	pytest -k "unit and functional and not test_libraries"
#}

package() {
	cd "$pkgname-$pkgver"
	export PYTHONHASHSEED=0
	python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}