# Maintainer: js6pak pkgname=depotdownloader-git pkgver=2.4.3.r4.g913c85a4 pkgrel=1 pkgdesc="Steam depot downloader utilizing the SteamKit2 library" arch=('x86_64') url="https://github.com/SteamRE/DepotDownloader" license=('GPL2') depends=('dotnet-runtime>=5') makedepends=('git' 'dotnet-sdk>=5') provides=("${pkgname%-git}") options=("!strip") source=("git+${url}.git") sha256sums=('SKIP') pkgver() { cd "DepotDownloader" git describe --long --tags | sed -e 's/^DepotDownloader_//g' -e 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "DepotDownloader/DepotDownloader" dotnet publish -r linux-x64 -c Release -p:PublishSingleFile=true --no-self-contained -p:IncludeAllContentForSelfExtract=true } package() { cd "DepotDownloader/DepotDownloader" install -D -m755 "bin/Release/net5.0/linux-x64/publish/DepotDownloader" "$pkgdir/usr/bin/depotdownloader" }