blob: 3e95e30c3e236bd1fa88f20f9d35c802043f9133 (
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
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: let <let@notlet.dev>
# Please note that this is my first AUR package ever, let me know if I made any mistakes or you have any improvements.
pkgname=stabilitymatrix
pkgver=2.12.2
pkgrel=1
pkgdesc='Multi-Platform Package Manager for Stable Diffusion'
arch=('any')
url='https://github.com/LykosAI/StabilityMatrix'
license=('AGPL3')
depends=('dotnet-runtime' 'libxcrypt-compat')
makedepends=('dotnet-sdk' 'git')
options=('!strip')
source=(
'zone.lykos.stabilitymatrix.png'
'zone.lykos.stabilitymatrix.desktop'
)
sha256sums=(
'0c32dcd560dfadae6c8cc1486fba1227e9cf93a55e3ba262571e83052e1bf22e'
'6907f3fc4dbf9140af924977c18460b24d220dab6c7871cdd3e8f4cd5a1e1635'
)
prepare() {
# dotnet apparently needs explicitly git cloning to build, it doesn't work with downloading the source code tarball from the release.
# Please contribute if you know a better way to do this.
[ -e "$srcdir/StabilityMatrix" ] && rm -rf "$srcdir/StabilityMatrix"
git clone https://github.com/LykosAI/StabilityMatrix --branch "v$pkgver"
}
build() {
cd "$srcdir/StabilityMatrix"
dotnet publish "./StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj" -o out -c Release -r linux-x64 -p:Version=$pkgver
}
package() {
mkdir -p "$pkgdir/opt"
mv "$srcdir/StabilityMatrix/out" "${pkgdir}/opt/$pkgname"
# Make a Data directory so that choosing portable mode doesn't error.
mkdir -m777 "$pkgdir/opt/$pkgname/Data"
# Desktop file and icon
install -Dm644 "zone.lykos.stabilitymatrix.desktop" "${pkgdir}/usr/share/applications/zone.lykos.stabilitymatrix.desktop"
install -D "zone.lykos.stabilitymatrix.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/zone.lykos.stabilitymatrix.png"
}
|