blob: b90ea9c0a9a488f4ffc4c8e4b7b92adc245fc134 (
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
|
# Maintainer: gf <guyxfreeman at gmail dot com>
pkgname=pearai-bin
pkgver=1.5.0
pkgrel=1
pkgdesc="Open-source AI-powered code editor"
arch=('x86_64')
url="https://trypear.ai"
license=('MIT')
depends=(
'dbus' 'glib2' 'krb5' 'hicolor-icon-theme' 'libxfixes'
'gtk3' 'nss' 'libxdamage' 'atk' 'libxext'
'cairo' 'mesa' 'libxcb' 'at-spi2-atk' 'cups'
'libx11' 'nspr' 'libxcomposite' 'glibc' 'alsa-lib'
'libxrandr' 'libdrm' 'libxkbfile' 'pango'
'at-spi2-core' 'libxkbcommon'
)
source=("https://pearai-app.nyc3.digitaloceanspaces.com/PearAI-latest/linux/PearAI-avx2.tar.gz")
sha256sums=('b1b256df5f34a9e1f92735a933f856b8ada7faf0301d59df58f82be19a83eddb')
install=$pkgname.install
package() {
install -dm755 "$pkgdir/opt/PearAI"
tar -xzf "$srcdir/PearAI/source/PearAI.tar.gz" -C "$pkgdir/opt/PearAI/"
install -Dm644 "$srcdir/PearAI/utils/PearAI.desktop" "$pkgdir/usr/share/applications/PearAI.desktop"
install -Dm644 "$srcdir/PearAI/utils/PearAI-url-handler.desktop" "$pkgdir/usr/share/applications/PearAI-url-handler.desktop"
install -Dm644 "$srcdir/PearAI/utils/pearAI.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/pearAI.png"
# Create symlink in /usr/bin
install -dm755 "$pkgdir/usr/bin"
ln -sf "/opt/PearAI/bin/PearAI" "$pkgdir/usr/bin/PearAI"
# Set permissions for chrome-sandbox
if [ -f "$pkgdir/opt/PearAI/chrome-sandbox" ]; then
chmod 4755 "$pkgdir/opt/PearAI/chrome-sandbox"
fi
# Copy additional resources
if [ -d "$pkgdir/opt/PearAI/resources" ]; then
cp -r "$pkgdir/opt/PearAI/resources/"* "$pkgdir/opt/PearAI/"
fi
}
|