summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilrain2023-02-01 17:19:57 +0100
committerGilrain2023-02-01 17:19:57 +0100
commitae7ad5f87db0d3108eae4838722bc9d8fffa74f8 (patch)
tree75234ae087f645612b9cbd909e42af9a63f90b0f
parentcde6a4f4b2048b0419ef6ff2e2612b49af29fd14 (diff)
downloadaur-ae7ad5f87db0d3108eae4838722bc9d8fffa74f8.tar.gz
split package into main app and plugins
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD39
2 files changed, 48 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 89f330f9c831..8376691cb2a9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,4 @@
pkgbase = asf
- pkgdesc = Steam cards farmer.
pkgver = 5.4.1.11
pkgrel = 1
url = https://github.com/JustArchiNET/ArchiSteamFarm
@@ -11,10 +10,7 @@ pkgbase = asf
license = Apache
makedepends = git
makedepends = dotnet-sdk>=7.0
- depends = aspnet-runtime>=7.0
- optdepends = asf-ui: standalone web interface for ASF
- backup = var/lib/asf/config/ASF.json
- backup = usr/lib/asf/NLog.config
+ makedepends = aspnet-runtime>=7.0
source = asf::git+https://github.com/JustArchiNET/ArchiSteamFarm.git#tag=5.4.1.11
source = service.patch
source = asf.env
@@ -26,4 +22,19 @@ pkgbase = asf
sha256sums = c300c5ce63c0237d7558b5b303159b8e2a8e5323f581cc8435dd2a6f1ead5332
sha256sums = 636f3a125071cabfcb0c3828c6f9b0ec613789ab846ff71448d1a6eb110aee3f
+pkgname = asf-plugin-steamtokendumper
+ pkgdesc = SteamTokenDumper plugin for ArchiSteamFarm.
+ depends = asf
+
+pkgname = asf-plugin-itemsmatcher
+ pkgdesc = ItemsMatcher plugin for ArchiSteamFarm.
+ depends = asf
+
pkgname = asf
+ pkgdesc = Steam cards farmer.
+ depends = aspnet-runtime>=7.0
+ optdepends = asf-ui: standalone web interface for ASF
+ optdepends = asf-plugin-itemsmatcher
+ optdepends = asf-plugin-steamtokendumper
+ backup = var/lib/asf/config/ASF.json
+ backup = usr/lib/asf/NLog.config
diff --git a/PKGBUILD b/PKGBUILD
index 39d78f0a2829..65313564122f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,15 @@
# Maintainer: Gilrain <gilrain+libre.arch A_T castelmo DOT_ re>
# Contributor: Lucki
-pkgname="asf"
+pkgbase=asf
+pkgname=('asf-plugin-steamtokendumper' 'asf-plugin-itemsmatcher' 'asf')
pkgver="5.4.1.11"
pkgrel=1
-pkgdesc="Steam cards farmer."
arch=('x86_64' 'armv7h' 'aarch64')
url="https://github.com/JustArchiNET/ArchiSteamFarm"
license=('Apache')
-depends=('aspnet-runtime>=7.0')
-optdepends=('asf-ui: standalone web interface for ASF')
-makedepends=('git' 'dotnet-sdk>=7.0')
+makedepends=('git' 'dotnet-sdk>=7.0' 'aspnet-runtime>=7.0')
changelog=changelog
-backup=('var/lib/asf/config/ASF.json' 'usr/lib/asf/NLog.config')
install=install
source=("asf::git+https://github.com/JustArchiNET/ArchiSteamFarm.git#tag=${pkgver}"
"service.patch"
@@ -34,8 +31,36 @@ build() {
cd asf
export DOTNET_CLI_TELEMETRY_OPTOUT=1
./cc.sh --no-pull --no-asf-ui
+
+ export DOTNET_FLAGS="-c Release -f net7.0 -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo"
+ export PUBLISH_FLAGS="-r "$(uname -s)"-"$(uname -m)" --no-self-contained"
+ dotnet publish "ArchiSteamFarm.OfficialPlugins.SteamTokenDumper" -o "out/result/plugins/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper" $DOTNET_FLAGS $PUBLISH_FLAGS
}
-package() {
+
+package_asf-plugin-steamtokendumper() {
+ pkgdesc="SteamTokenDumper plugin for ArchiSteamFarm."
+ depends=('asf')
+
+ install -d -m 755 ${pkgdir}/usr/lib/asf/plugins/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper
+ mv asf/out/result/plugins/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper "${pkgdir}/usr/lib/asf/plugins/"
+}
+
+package_asf-plugin-itemsmatcher() {
+ pkgdesc="ItemsMatcher plugin for ArchiSteamFarm."
+ depends=('asf')
+
+ install -d -m 755 ${pkgdir}/usr/lib/asf/plugins/ArchiSteamFarm.OfficialPlugins.ItemsMatcher
+ mv asf/out/result/plugins/ArchiSteamFarm.OfficialPlugins.ItemsMatcher "${pkgdir}/usr/lib/asf/plugins/"
+}
+
+package_asf() {
+ pkgdesc="Steam cards farmer."
+ depends=('aspnet-runtime>=7.0')
+ optdepends=('asf-ui: standalone web interface for ASF'
+ 'asf-plugin-itemsmatcher'
+ 'asf-plugin-steamtokendumper')
+ backup=('var/lib/asf/config/ASF.json' 'usr/lib/asf/NLog.config')
+
cd asf/out/result
install -d -m 755 "${pkgdir}/usr/lib/${pkgname}"
cp -rdp --no-preserve=ownership . "${pkgdir}/usr/lib/asf"