summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlilac2019-11-17 22:25:18 +0800
committerlilac2019-11-17 22:25:18 +0800
commit25d5f8514b45a06167dedebe7579f6ffc5320882 (patch)
treec172be8073babe5f8470b68e6d18200fd19ce663
parentb8bfb16f9b700779331de6bf19a4bab710819ae9 (diff)
downloadaur-25d5f8514b45a06167dedebe7579f6ffc5320882.tar.gz
update by lilac
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9ac4b4b716c..7e3697cff17 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-gluoncv
pkgdesc = A Deep Learning Toolkit for Computer Vision
pkgver = 0.5.0
- pkgrel = 2
+ pkgrel = 4
url = https://gluon-cv.mxnet.io
arch = any
license = Apache
diff --git a/PKGBUILD b/PKGBUILD
index 14d36328bbb..73505418027 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=gluon-cv
pkgname=python-gluoncv
pkgver=0.5.0
-pkgrel=2
+pkgrel=4
pkgdesc='A Deep Learning Toolkit for Computer Vision'
arch=(any)
url='https://gluon-cv.mxnet.io'
@@ -18,6 +18,10 @@ makedepends=(python-setuptools)
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/dmlc/gluon-cv/archive/v${pkgver}.tar.gz")
sha512sums=('b50f7ca9232cf8657c2953a7501f197225b389a767f9a0a7f4453a239700a198077472c8a21924bba6a1f32909b708becb00841bff5326cb6b42e94f9c23ca4d')
+get_pyver () {
+ python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
+}
+
build() {
cd ${_pkgname}-${pkgver}
python setup.py build
@@ -26,9 +30,6 @@ build() {
package() {
cd "${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- # install missing json files
- find "${srcdir}/${_pkgname}-${pkgver}/gluoncv/model_zoo/pruned_resnet" -type f -name "*.json" -exec install -Dm644 {} -t "${pkgdir}/usr/lib/python3.7/site-packages/gluoncv/model_zoo/pruned_resnet" \;
- find "${srcdir}/${_pkgname}-${pkgver}/gluoncv/model_zoo/quantized" -type f -name "*.json" -exec install -Dm644 {} "${pkgdir}/usr/lib/python3.7/site-packages/gluoncv/model_zoo/quantized" \;
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et: