blob: c18cbc7c67a189daa28ec7c53957b5274d9d45e7 (
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
47
48
49
50
51
52
|
# Maintainer: Ben Davis <bendavis78@gmail.com>
_appname="stable-diffusion-webui"
_appprefix="/opt"
_appdataprefix="/var/opt"
pkgname="${_appname}-git"
pkgver=1.9.4.r0.gfeee37d
pkgrel=3
pkgdesc="Stable Diffusion Web UI (AUTOMATIC1111)"
arch=("x86_64")
url="https://github.com/AUTOMATIC1111/$_appname"
license=("AGPL3")
groups=()
depends=("python310" "wget")
makedepends=("git")
provides=("stable-diffusion-ui")
source=(
"${pkgname}::git+https://github.com/AUTOMATIC1111/$_appname.git"
"stable-diffusion-webui.service"
"webui.conf"
)
install="${pkgname}.install"
noextract=("v1-5-pruned-emaonly.safetensors")
sha1sums=('SKIP'
'f7424d43daaa71f738b821ac158a13da14be9030'
'c99dd58ce69d9c35152d3c99af21e4dab552a450')
options=('!strip')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
# Install systemd service
install -Dm644 "./$_appname.service" "$pkgdir/usr/lib/systemd/system/$_appname.service"
rm -rf "$pkgdir/opt/$_appname/.git"
# Install the default config file to /usr/share/$_appname/webui.conf
install -d "$pkgdir/usr/share/$_appname"
install -Dm644 "./webui.conf" "$pkgdir/usr/share/$_appname/webui.conf"
# Copy source to app's home directory
install -d "$pkgdir${_appprefix}/$_appname"
install -d "$pkgdir${_appdataprefix}/$_appname"
cp -R "$srcdir/${pkgname}/." "$pkgdir${_appprefix}/$_appname"
rm -rf "$pkgdir${_appprefix}/$_appname/.git"
chmod 775 "$pkgdir${_appprefix}/$_appname"
chmod -R gu+rwX,go+r "$pkgdir${_appprefix}/$_appname"
}
|