summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40dbac980d2f925251c1475dcbeb93ccc8367c4a (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

pkgname=pyinstaller-git
_pyname=pyinstaller
pkgver=r6822.e29c0472
pkgrel=1
pkgdesc="An application to convert python scripts into stand-alone binaries"
arch=('i686' 'x86_64')
url="http://www.pyinstaller.org"
license=('GPL2')
depends=('python' 'python-altgraph' 'python-pefile' 'python-macholib')
makedepends=('git' 'python-setuptools')
provides=('pyinstaller')
conflicts=('pyinstaller')
source=("git+https://github.com/pyinstaller/pyinstaller.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pyname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pyname}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_pyname}"
  python setup.py install --root="${pkgdir}" --skip-build --optimize=1
}