blob: 10b2c877d284ea10862f64ac17159721353a10f6 (
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
53
54
55
56
57
|
# Maintainer: Eshu Team <support@eshu-apps.com>
pkgname=eshu-installer
pkgver=0.4.6
pkgrel=2
pkgdesc="AI-Driven Universal Package Installer for Linux"
arch=('any')
url="https://eshu-apps.com"
license=('MIT')
depends=('python>=3.9' 'python-pip' 'git')
optdepends=(
'ollama: For local AI support'
'timeshift: For system snapshots'
'snapper: For system snapshots (alternative)'
'distrobox: For Ghost Mode'
'podman: For Ghost Mode (alternative)'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/eshu-apps/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('9538eea9b420bdddbf1c786a792981acff22c9dc48294337b490d04f5bf64bdf')
package() {
cd "$pkgname-$pkgver"
# Install all source files to /usr/share
install -dm755 "$pkgdir/usr/share/$pkgname"
cp -r src setup.py requirements.txt LICENSE README.md systemd "$pkgdir/usr/share/$pkgname/"
# Install the installer script
install -Dm755 install-eshu.sh "$pkgdir/usr/share/$pkgname/install-eshu.sh"
# Create a wrapper that runs the installer
install -dm755 "$pkgdir/usr/bin"
cat > "$pkgdir/usr/bin/install-eshu" << 'EOF'
#!/bin/bash
cd /usr/share/eshu-installer
./install-eshu.sh "$@"
EOF
chmod +x "$pkgdir/usr/bin/install-eshu"
# Install license and docs
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
post_install() {
echo "======================================"
echo "ESHU Installer has been installed"
echo "======================================"
echo ""
echo "To complete setup, run:"
echo " install-eshu"
echo ""
echo "This will create a Python venv at ~/.local/share/eshu"
echo "and install all dependencies via pip."
echo ""
}
# vim:set ts=2 sw=2 et:
|