summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlilac2019-04-24 03:49:06 +0800
committerlilac2019-04-24 03:49:06 +0800
commit2fa0fc5f4f902bd6c1b5ed5def23aa5bc0c76ebf (patch)
tree3b8cb3755e2f4bc2b35535cde1731e099a66fe31
parentfcb75eb738790dc70f02fc1cd6e3a3a9c94d5d87 (diff)
downloadaur-2fa0fc5f4f902bd6c1b5ed5def23aa5bc0c76ebf.tar.gz
update by lilac
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD19
2 files changed, 12 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0d1a05c13f4..9da55e99ae8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python-pretrainedmodels-git
pkgdesc = Pretrained ConvNets for PyTorch
- pkgver = r136.25b4abd
+ pkgver = r152.021d978
pkgrel = 1
url = https://github.com/Cadene/pretrained-models.pytorch
arch = any
@@ -12,8 +12,8 @@ pkgbase = python-pretrainedmodels-git
depends = python-scipy
depends = python-torchvision
depends = python-tqdm
- provides = python-pretrainedmodels-git
- conflicts = python-pretrainedmodels-git
+ provides = python-pretrainedmodels
+ conflicts = python-pretrainedmodels
source = python-pretrainedmodels-git::git+https://github.com/Cadene/pretrained-models.pytorch.git
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index cb2d9ffb870..cac05400bc1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Butui Hu <hot123tea123@gmail.com>
pkgname=python-pretrainedmodels-git
-pkgver=r136.25b4abd
+pkgver=r152.021d978
pkgrel=1
pkgdesc="Pretrained ConvNets for PyTorch"
arch=(any)
@@ -8,27 +8,26 @@ url="https://github.com/Cadene/pretrained-models.pytorch"
license=('BSD')
depends=(python-munch python-pytorch python-scipy python-torchvision python-tqdm )
makedepends=(git python-setuptools)
-provides=(python-pretrainedmodels-git)
-conflicts=(python-pretrainedmodels-git)
-source=('python-pretrainedmodels-git::git+https://github.com/Cadene/pretrained-models.pytorch.git')
-noextract=()
+provides=(python-pretrainedmodels)
+conflicts=(python-pretrainedmodels)
+source=("${pkgname}::git+https://github.com/Cadene/pretrained-models.pytorch.git")
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/${pkgname}"
+ cd "${srcdir}/${pkgname}"
# Git, no tags available
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir/${pkgname}"
+ cd "${srcdir}/${pkgname}"
python setup.py build
}
package() {
- cd "$srcdir/${pkgname}"
- python setup.py install --root=$pkgdir --optimize=1 --skip-build
- install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+ cd "${srcdir}/${pkgname}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et: