diff options
author | Tom "Ravi" Hale | 2023-06-27 17:53:18 +0700 |
---|---|---|
committer | Tom "Ravi" Hale | 2023-06-29 09:40:08 +0700 |
commit | 7f4ddc5c90943f2a5ddb5d97be4614d8308497d8 (patch) | |
tree | 2cbb141aae08bcb1fb8dfc77dba0dfbf79b18d3c | |
parent | 9c280ae92c052a27afaf5bd5b3ceaf0ab601ed78 (diff) | |
download | aur-7f4ddc5c90943f2a5ddb5d97be4614d8308497d8.tar.gz |
Get AppImage via source array
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -15,16 +15,11 @@ makedepends=(git) conflicts=(nixnote2-git) provides=("nixnote=${pkgver%.r*}" "$_pkgname=${pkgver%.r*}") replaces=(nevernote nixnote nixnote-beta) -source=("$pkgname:desktop.patch") -noextract=("${source[@]%%::*}") # Don't extract anything +_appimage=NixNote2-x86_64.AppImage +source=('https://github.com/robert7/nixnote2/releases/download/continuous/'"$_appimage") +b2sums=(SKIP) # Source will change as new versions are released +noextract=("${source[@]%%::*}") # Don't auto-extract anything -_version_file=$pkgname-PKGBUILD-version # For version from the download URL - -_appimage_path=$(curl -s 'https://github.com/robert7/nixnote2/releases' | - sed -En 's:.*(/releases/download/v[^"/]+/[^"/]+[Aa]pp[Ii]mage)".*:\1:p' | - head -n1) - -_appimage=${_appimage_path##*/} # basename of AppImage prepare() { wget -N "$url/$_appimage_path" # Only download again if server version is newer |