diff options
author | xiota | 2023-11-17 11:55:57 -0800 |
---|---|---|
committer | xiota | 2023-11-17 11:55:57 -0800 |
commit | 9923fc43e4bbbf4e1e026f8d265311a264fdf777 (patch) | |
tree | 47691fcfa47ce568493cec9532e9285115625a4c | |
parent | a49b41ac23220f4be379fc975c61db70e2dd3f54 (diff) | |
download | aur-9923fc43e4bbbf4e1e026f8d265311a264fdf777.tar.gz |
fix _autoupdate=false
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -2,7 +2,9 @@ # Contributor: Alexey Peschany <archlinux at sandboiii dot xyz> # options -if [ -z "$_pkgver" ] ; then +if [ -z "$_srcinfo" ] ; then + : ${_autoupdate:=false} +elif [ -z "$_pkgver" ] ; then : ${_autoupdate:=true} else : ${_autoupdate:=false} @@ -38,7 +40,9 @@ _main_package() { options=('!emptydirs' '!strip') install="$_pkgname.install" - _dl_filename="${_pkgname}_${_pkgver:?}_amd64.deb" + : ${_dl_filename:=${_pkgname}_${_pkgver:?}_amd64.deb} + : ${_dl_url:=$url/releases/download/v.$pkgver/$_dl_filename} + noextract+=("$_dl_filename") source=( "$_dl_filename"::"$_dl_url" @@ -106,6 +110,7 @@ _update_version() { } _dl_url=$(_get browser_download_url) + _dl_filename="${_dl_url##*/}" _regex='^.*mercury-browser_([0-9\.]+)_.*\.deb.*$' _pkgver_new=$( |