diff options
author | jerry73204 | 2019-10-17 21:44:14 +0800 |
---|---|---|
committer | jerry73204 | 2019-10-17 21:44:14 +0800 |
commit | e109e60bb161ed4683ec5e534d999ab56536cc0d (patch) | |
tree | c9287309d9373017208b65b02b44f034decd11d6 | |
download | aur-python-fvcore-git.tar.gz |
Welcome python-fvcore-git package
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..141d83472849 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = python-fvcore-git + pkgdesc = Collection of common code that's shared among different research projects in FAIR computer vision team. + pkgver = r9.1f3825f + pkgrel = 1 + url = https://github.com/facebookresearch/fvcore/ + arch = x86_64 + license = Apache + makedepends = git + makedepends = python + depends = python>=3.6 + depends = python-yaml + depends = python-tqdm + depends = python-portalocker + depends = python-termcolor + depends = python-shapely + provides = python-fvcore + conflicts = python-fvcore + source = python-fvcore::git+https://github.com/facebookresearch/fvcore.git + sha256sums = SKIP + +pkgname = python-fvcore-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..25a5a4dca3d1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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/ +} + |