mirror of
https://github.com/archlinux/aur.git
synced 2026-02-03 13:59:12 +01:00
split package into main app and plugins
This commit is contained in:
parent
cde6a4f4b2
commit
ae7ad5f87d
2 changed files with 48 additions and 12 deletions
21
.SRCINFO
21
.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
|
||||
|
|
|
|||
39
PKGBUILD
39
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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue