summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32f6ded02525bb7ee1c22777ed31c2044cd30490 (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
# Maintainer:
# Contributor: 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.5
pkgrel=1
pkgdesc="Bundles a Python application and all its dependencies into a single package"
arch=('x86_64')
url="http://www.pyinstaller.org"
license=('GPL2')
depends=('python-altgraph' 'pyinstaller-hooks-contrib')
makedepends=('cmocka' 'python-setuptools')
#checkdepends=('flake8' 'python-execnet' 'python-flaky' 'python-lxml' 'python-psutil'
#              'python-pytest-rerunfailures' 'python-pytest-xdist')
#              'python-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=('86f694faec78a08c3893aacef84b1a49cb53d4e2880559c6124beefd196a3a74')

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

#check() {
#  cd "$pkgname-$pkgver"
#  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')

#  # Run only the unit and functional tests, but not the huge library test-suite
#  PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" \
#    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
}