From b7cc03c2c6d99e6baa357e4b7abd6f2d51b79a6d Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 12 Apr 2021 16:25:33 +0200 Subject: [PATCH] "steal" version from Arch --- y/minecraft-launcher/SlackBuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/y/minecraft-launcher/SlackBuild b/y/minecraft-launcher/SlackBuild index d8192a6e..9ad86163 100755 --- a/y/minecraft-launcher/SlackBuild +++ b/y/minecraft-launcher/SlackBuild @@ -3,7 +3,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-$(curl -s https://minecraft.gamepedia.com/Launcher_version_history | grep Linux | head -n 1 | grep -o ">[0-9.]*$" | sed 's|>\([0-9.]*\)$|\1|')} +VERSION=${VERSION:-$(curl "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=minecraft-launcher" | grep "pkgver=" | grep -o "[0-9]*")} ARCH=$(uname -m) BUILD=${BUILD:-1} @@ -19,7 +19,7 @@ mkdir -p $PKG/opt/${PRGNAM} tar xvf $CWD/minecraft-launcher_${VERSION}.tar.gz -C $PKG/opt/ -# rm $CWD/minecraft-launcher_${VERSION}.tar.gz +rm $CWD/minecraft-launcher_${VERSION}.tar.gz mkdir -p $PKG/usr/bin cd $PKG/usr/bin