blob: 442390bfc2e80fb0053038e9d3bd462297fb39c1 (
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
|
# Maintainer: y-not-u <voganwong@hotmail.com>
pkgbase=msty
pkgname=msty-bin
_pkgname="${pkgname%-bin}"
pkgver=1.1.1
pkgrel=1
pkgdesc="The easiest way to use local and online AI models"
arch=('x86_64')
url="https://msty.app"
license=('custom')
depends=()
options=('!strip')
source=("$pkgname-$pkgver.AppImage::https://assets.msty.app/Msty_x86_64.AppImage"
"$_pkgname.desktop"
"$_pkgname.png")
sha256sums=('SKIP'
'SKIP'
'SKIP')
conflicts=("$_pkgname")
package() {
cd "$srcdir"
# Create directories
install -dm755 "$pkgdir/usr/bin"
install -dm755 "$pkgdir/opt/$pkgname"
install -dm755 "$pkgdir/usr/share/applications"
install -dm755 "$pkgdir/usr/share/icons/hicolor/256x256/apps"
# Install AppImage
install -Dm755 "$pkgname-$pkgver.AppImage" "$pkgdir/opt/$pkgname/$pkgname.AppImage"
# Install icon
install -Dm644 "$_pkgname.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/$_pkgname.png"
# Install desktop file
install -Dm644 "$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
# Symlink executable
ln -s "/opt/${pkgname}/${pkgname}.AppImage" "${pkgdir}/usr/bin/${_pkgname}"
}
|