summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6511783eec9bc7d07e9f2df671ae2c0807c19aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>

pkgname=python-compiler
pkgver=1.1
pkgrel=5
pkgdesc='Python bytecode compiler written in Python'
arch=(any)
url='https://github.com/facebookincubator/python-compiler'
license=(custom)
makedepends=(git python python-setuptools)
source=("git+$url#commit=5a9a30b3d5fae5337ff449030873a58b35e875a4") # no release tags yet
b2sums=(SKIP)

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

package() {
  cd $pkgname
  python setup.py install --optimize=1 --root="$pkgdir" --skip-build
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}