summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD7
2 files changed, 6 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e472c5d75c4b..212889527dcc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,10 @@
pkgbase = lolminer
pkgdesc = Unofficial installer for lolMiner: https://github.com/Lolliedieb/lolMiner-releases
pkgver = 1.0
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/Lolliedieb/lolMiner-releases
arch = x86_64
+ license = GPL
depends = curl
depends = tar
options = !strip
diff --git a/PKGBUILD b/PKGBUILD
index 5cb5917b4106..8b49715a367d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,11 @@
# Maintainer: Saurabh Kumar Sharma <saurabh000345 at gmail dot com>
pkgname=lolminer
pkgver=1.0
-pkgrel=3
+pkgrel=4
pkgdesc="Unofficial installer for lolMiner: https://github.com/Lolliedieb/lolMiner-releases"
arch=("x86_64")
url="https://github.com/Lolliedieb/lolMiner-releases"
-lisense=("GPL")
+license=("GPL")
depends=("curl" "tar" )
options=('!strip')
@@ -14,7 +14,8 @@ prepare(){
latver=$(curl --silent 'https://api.github.com/repos/Lolliedieb/lolMiner-releases/releases/latest' | grep ".*tag_name.*" | sed -E 's/.*"([^"]+)".*/\1/')
echo "Downloading lolMiner v$latver"
mkdir -p lolminer
- curl -L "https://github.com/Lolliedieb/lolMiner-releases/releases/download/$latver/lolMiner_v${latver}_Lin64.tar.gz" | tar xzf - --directory "lolminer" --strip-components=1
+ downloadlink=$(curl --silent 'https://api.github.com/repos/Lolliedieb/lolMiner-releases/releases/latest' | grep ".*browser_download_url.*Lin64.*" | sed -E 's/.*"([^"]+)".*/\1/')
+ curl -L "$downloadlink" | tar xzf - --directory "lolminer" --strip-components=1
}
package(){