From b1546e9bb5df0a291a30870bce558bc949d3a843 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 1 Jul 2021 14:41:32 +0200 Subject: [PATCH] Fix: Prevent build-failures of new versions in unclean build-environments Signed-off-by: Knut Ahlers --- .SRCINFO | 4 ++-- PKGBUILD | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 41d7a02..55fb3ac 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -12,8 +12,8 @@ pkgbase = archisteamfarm-bin noextract = ASF-linux-x64.zip options = !strip options = staticlibs - source = https://github.com/JustArchiNET/ArchiSteamFarm/releases/download/5.1.1.1/ASF-linux-x64.zip - source = https://raw.githubusercontent.com/JustArchiNET/ArchiSteamFarm/5.1.1.1/LICENSE-2.0.txt + source = archisteamfarm-bin-5.1.1.1.zip::https://github.com/JustArchiNET/ArchiSteamFarm/releases/download/5.1.1.1/ASF-linux-x64.zip + source = LICENSE-5.1.1.1.txt::https://raw.githubusercontent.com/JustArchiNET/ArchiSteamFarm/5.1.1.1/LICENSE-2.0.txt source = ArchiSteamFarm-bin.desktop sha512sums = d805ae0c2395877dc8ba8bec94f274d8d844294b52c5b891ef60ed816cabdfc3f62c60db32011b4657db44dfe6f28f1438eb43cd442fb0a6cd8fd9de52877c82 sha512sums = 98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8 diff --git a/PKGBUILD b/PKGBUILD index d3f1476..3b63a5e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -14,8 +14,8 @@ noextract=('ASF-linux-x64.zip') options=("!strip" "staticlibs") source=( - "https://github.com/JustArchiNET/ArchiSteamFarm/releases/download/${pkgver}/ASF-linux-x64.zip" - "https://raw.githubusercontent.com/JustArchiNET/ArchiSteamFarm/${pkgver}/LICENSE-2.0.txt" + "${pkgname}-${pkgver}.zip::https://github.com/JustArchiNET/ArchiSteamFarm/releases/download/${pkgver}/ASF-linux-x64.zip" + "LICENSE-${pkgver}.txt::https://raw.githubusercontent.com/JustArchiNET/ArchiSteamFarm/${pkgver}/LICENSE-2.0.txt" "ArchiSteamFarm-bin.desktop" ) @@ -24,11 +24,13 @@ sha512sums=('d805ae0c2395877dc8ba8bec94f274d8d844294b52c5b891ef60ed816cabdfc3f62 '32aaead4aacc02c9c60afef74e04cb3a30afc4d76f5e6836a05e672344c7db66cf099849cb2bc9a04454a026f99c9f60d3d7186f4a496d4626fe1a3d40d4ecf6') prepare() { - unzip ASF-linux-x64.zip -d "ASF" + unzip "${pkgname}-${pkgver}.zip" -d "ASF" } package() { - install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "LICENSE-2.0.txt" + install -d "${pkgdir}/usr/share/licenses/${pkgname}" + cp "LICENSE-${pkgver}.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-2.0.txt" + install -Dm644 -t "${pkgdir}/usr/share/applications" "ArchiSteamFarm-bin.desktop" install -d "${pkgdir}/opt/ArchiSteamFarm-bin"