summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcbff71d058067e8f448da4e55687c0b6c8b29fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: js6pak <kubastaron@hotmail.com>

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
}

package() {
  cd "DepotDownloader/DepotDownloader"

  install -D -m755 "bin/Release/net5.0/linux-x64/publish/DepotDownloader" "$pkgdir/usr/bin/depotdownloader"
}