Always provide latest version

This commit is contained in:
Dāvis 2020-01-07 21:40:16 +02:00
parent 2fe3011919
commit 6f2afa3bf4
2 changed files with 24 additions and 12 deletions

View file

@ -1,17 +1,21 @@
pkgbase = archisteamfarm-bin pkgbase = archisteamfarm-bin
pkgdesc = C# application that allows you to farm steam cards using multiple steam accounts simultaneously. pkgdesc = C# application that allows you to farm steam cards using multiple steam accounts simultaneously.
pkgver = 4.0.1.9 pkgver = 4.1.1.7
pkgrel = 1 pkgrel = 1
url = https://github.com/JustArchiNET/ArchiSteamFarm url = https://github.com/JustArchiNET/ArchiSteamFarm
arch = x86_64 arch = x86_64
license = Apache License 2.0 license = Apache License 2.0
makedepends = unzip makedepends = unzip
makedepends = curl
makedepends = jq
depends = dotnet-runtime
noextract = ASF-linux-x64.zip noextract = ASF-linux-x64.zip
options = !strip options = !strip
source = https://github.com/JustArchiNET/ArchiSteamFarm/releases/download/4.0.1.9/ASF-linux-x64.zip options = staticlibs
source = https://github.com/JustArchiNET/ArchiSteamFarm/releases/latest/download/ASF-linux-x64.zip
source = LICENSE-2.0.txt source = LICENSE-2.0.txt
source = ArchiSteamFarm-bin.desktop source = ArchiSteamFarm-bin.desktop
md5sums = 26249accb2b892b30ea3b6cecb6c04bc md5sums = SKIP
md5sums = 175792518e4ac015ab6696d16c4f607e md5sums = 175792518e4ac015ab6696d16c4f607e
md5sums = 98654afd36cae629f570ff0510669ba2 md5sums = 98654afd36cae629f570ff0510669ba2

View file

@ -1,37 +1,45 @@
# Maintainer: Baron Hou <houbaron@gmail.com> # Maintainer: Baron Hou <houbaron@gmail.com>
pkgname=archisteamfarm-bin pkgname=archisteamfarm-bin
pkgver=4.0.1.9 pkgver=4.1.1.7
pkgrel=1 pkgrel=1
pkgdesc="C# application that allows you to farm steam cards using multiple steam accounts simultaneously." pkgdesc="C# application that allows you to farm steam cards using multiple steam accounts simultaneously."
arch=('x86_64') arch=('x86_64')
url="https://github.com/JustArchiNET/ArchiSteamFarm" url="https://github.com/JustArchiNET/ArchiSteamFarm"
license=("Apache License 2.0") license=("Apache License 2.0")
makedepends=("unzip") depends=(dotnet-runtime)
makedepends=("unzip" "curl" "jq")
noextract=('ASF-linux-x64.zip') noextract=('ASF-linux-x64.zip')
options=("!strip") options=("!strip" "staticlibs")
source=( source=(
"https://github.com/JustArchiNET/ArchiSteamFarm/releases/download/${pkgver}/ASF-linux-x64.zip" "https://github.com/JustArchiNET/ArchiSteamFarm/releases/latest/download/ASF-linux-x64.zip"
"LICENSE-2.0.txt" "LICENSE-2.0.txt"
"ArchiSteamFarm-bin.desktop" "ArchiSteamFarm-bin.desktop"
) )
md5sums=( md5sums=(
'26249accb2b892b30ea3b6cecb6c04bc' 'SKIP'
'175792518e4ac015ab6696d16c4f607e' '175792518e4ac015ab6696d16c4f607e'
'98654afd36cae629f570ff0510669ba2' '98654afd36cae629f570ff0510669ba2'
) )
pkgver() {
curl -s https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/releases/latest | jq -r '.tag_name'
}
prepare() { prepare() {
unzip ASF-linux-x64.zip rm -rf "ASF"
rm -rf ASF-linux-x64.zip unzip ASF-linux-x64.zip -d "ASF"
} }
package() { package() {
install -Dm644 "LICENSE-2.0.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "LICENSE-2.0.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "ArchiSteamFarm-bin.desktop" "${pkgdir}/usr/share/applications/ArchiSteamFarm-bin.desktop" install -Dm644 "ArchiSteamFarm-bin.desktop" "${pkgdir}/usr/share/applications/ArchiSteamFarm-bin.desktop"
install -Dm755 "ArchiSteamFarm" "${pkgdir}/opt/ArchiSteamFarm-bin/ArchiSteamFarm" install -Dm755 "./ASF/ArchiSteamFarm" "${pkgdir}/opt/ArchiSteamFarm-bin/ArchiSteamFarm"
cp -r "${srcdir}"/* "${pkgdir}/opt/ArchiSteamFarm-bin/" cp -r "${srcdir}/ASF"/* "${pkgdir}/opt/ArchiSteamFarm-bin/"
rm -f "$srcdir/../ASF-linux-x64.zip"
} }