summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25a5a4dca3d171717af7eb719b486543866d1c26 (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: jerry73204 <jerry73204@gmail.com>
pkgname='python-fvcore-git'
pkgver=r9.1f3825f
pkgrel=1
pkgdesc="Collection of common code that's shared among different research projects in FAIR computer vision team."
arch=('x86_64')
url='https://github.com/facebookresearch/fvcore/'
license=('Apache')
makedepends=('git' 'python')
depends=('python>=3.6' 'python-yaml' 'python-tqdm' 'python-portalocker' 'python-termcolor' 'python-shapely')
source=("${pkgname%-git}"::'git+https://github.com/facebookresearch/fvcore.git')
sha256sums=('SKIP')
provides=('python-fvcore')
conflicts=('python-fvcore')

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

build() {
  cd "${srcdir}/${pkgname%-git}"
  python setup.py build
}

package() {
  cd "${srcdir}/${pkgname%-git}"
  python setup.py install --root="$pkgdir" --optimize=1
  rm -vrf $pkgdir/usr/lib/python*/site-packages/tests/
}