diff options
author | js6pak | 2021-05-06 19:51:14 +0200 |
---|---|---|
committer | js6pak | 2021-05-06 19:51:14 +0200 |
commit | f9528cba67f7535255369b20186bb309a5464c44 (patch) | |
tree | 088e32e69ce915282c0b44587b134337e384fb08 | |
download | aur-f9528cba67f7535255369b20186bb309a5464c44.tar.gz |
Initial
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | DepotDownloader.csproj.patch | 13 | ||||
-rw-r--r-- | PKGBUILD | 40 |
4 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b5aa06fb0f58 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = depotdownloader-git + pkgdesc = Steam depot downloader utilizing the SteamKit2 library + pkgver = 2.4.0.r12.gcb5c6c8a + pkgrel = 1 + url = https://github.com/SteamRE/DepotDownloader + arch = x86_64 + license = GPL2 + makedepends = git + makedepends = dotnet-sdk>=3.1 + depends = dotnet-runtime>=3.1 + provides = depotdownloader + options = !strip + source = git+https://github.com/SteamRE/DepotDownloader.git + source = DepotDownloader.csproj.patch + sha256sums = SKIP + sha256sums = 792094891d26a81208982a4e773915aae300b203ea2acd183476d9f593523541 + +pkgname = depotdownloader-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1720747dbf69 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +* + +!.gitignore +!PKGBUILD +!.SRCINFO + +!DepotDownloader.csproj.patch
\ No newline at end of file diff --git a/DepotDownloader.csproj.patch b/DepotDownloader.csproj.patch new file mode 100644 index 000000000000..dbbaeb8b13c8 --- /dev/null +++ b/DepotDownloader.csproj.patch @@ -0,0 +1,13 @@ +diff --git a/DepotDownloader/DepotDownloader.csproj b/DepotDownloader/DepotDownloader.csproj +index e56e462f..04e374e4 100644 +--- a/DepotDownloader/DepotDownloader.csproj ++++ b/DepotDownloader/DepotDownloader.csproj +@@ -1,7 +1,7 @@ + <Project Sdk="Microsoft.NET.Sdk"> + <PropertyGroup> + <OutputType>Exe</OutputType> +- <TargetFramework>netcoreapp2.0</TargetFramework> ++ <TargetFramework>netcoreapp3.1</TargetFramework> + <GenerateAssemblyInfo>false</GenerateAssemblyInfo> + </PropertyGroup> + <ItemGroup> diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9a2a3a064ae7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: js6pak <kubastaron@hotmail.com> + +pkgname=depotdownloader-git +pkgver=2.4.0.r12.gcb5c6c8a +pkgrel=1 +pkgdesc="Steam depot downloader utilizing the SteamKit2 library" +arch=('x86_64') +url="https://github.com/SteamRE/DepotDownloader" +license=('GPL2') +depends=('dotnet-runtime>=3.1') +makedepends=('git' 'dotnet-sdk>=3.1') +provides=("${pkgname%-git}") + +options=("!strip") +source=("git+${url}.git" 'DepotDownloader.csproj.patch') +sha256sums=('SKIP' '792094891d26a81208982a4e773915aae300b203ea2acd183476d9f593523541') + +pkgver() { + cd "DepotDownloader" + + git describe --long --tags | sed -e 's/^DepotDownloader_//g' -e 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "DepotDownloader/DepotDownloader" + + patch --input="${srcdir}/DepotDownloader.csproj.patch" +} + +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/netcoreapp3.1/linux-x64/publish/DepotDownloader" "$pkgdir/usr/bin/depotdownloader" +} |