summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e00844e02ad20eebf6c7cc4335cfd2a397ad661 (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
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

pkgname=monkeytype-git
pkgver=v19.11.2.r3.ga586173
pkgrel=1
pkgdesc="Generates static type annotations for Python modules by collecting runtime types"
arch=('any')
url="https://github.com/instagram/MonkeyType"
license=('BSD')
makedepends=('git')
depends=('python' 'python-setuptools' 'python-stringcase' 'python-retype')
conflicts=('monkeytype')
provides=('monkeytype')
source=("git+https://github.com/instagram/MonkeyType")
sha256sums=('SKIP')

pkgver() {
  cd MonkeyType
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd MonkeyType
  python setup.py build
}

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