diff options
author | Leo Mao | 2019-08-20 11:12:26 +0800 |
---|---|---|
committer | Leo Mao | 2019-08-20 11:12:26 +0800 |
commit | 29427a8bd78543aba64dea3eee0d2e5af072c3de (patch) | |
tree | 6d1cc25eedeaf3623235f6d9c15578e5314582bf | |
parent | 5359f7e21208d97f615f039e248fb76acf737f82 (diff) | |
download | aur-29427a8bd78543aba64dea3eee0d2e5af072c3de.tar.gz |
upgpkg: python-torchaudio-git r172.fc9fb93-1
fix pkgver
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 6 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = python-torchaudio-git - pkgdesc = simple audio I/O for pytorch - pkgver = 0.4.0a0+a450cf8 + pkgdesc = Data manipulation and transformation for audio signal processing, powered by PyTorch + pkgver = r172.fc9fb93 pkgrel = 1 url = https://github.com/pytorch/audio arch = any @@ -1,9 +1,9 @@ # Maintainer: Leo Mao <leomaoyw at gmail dot com> pkgname=python-torchaudio-git _pkgname=audio -pkgver=0.4.0a0+a450cf8 +pkgver=r172.fc9fb93 pkgrel=1 -pkgdesc="simple audio I/O for pytorch" +pkgdesc="Data manipulation and transformation for audio signal processing, powered by PyTorch" arch=('any') url="https://github.com/pytorch/audio" _github='pytorch/audio' @@ -20,7 +20,8 @@ pkgver () { cd "${_pkgname}" ( set -o pipefail - python setup.py --version 2>/dev/null | tail -n 1 + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } |