blob: e42dc30528e6af523d82230cfbef3268d209b221 (
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
|
# Maintainer: trougnouf (Benoit Brummer) <trougnouf@gmail.com>
pkgname=python-pytorch-adabelief-git
_name=Adabelief-Optimizer
pkgver=r164.47da741
pkgrel=1
pkgdesc="PyTorch implementation of Adabelief Optimizer"
url="https://juntang-zhuang.github.io/adabelief"
license=('MIT')
arch=('any')
depends=('python-pytorch')
source=("git+https://github.com/juntang-zhuang/${_name}")
sha256sums=('SKIP')
pkgver() {
cd ${srcdir}/${_name}/pypi_packages/adabelief_pytorch
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${srcdir}/${_name}/pypi_packages/adabelief_pytorch
python setup.py build
}
package() {
cd ${srcdir}/${_name}/pypi_packages/adabelief_pytorch
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
|