Files
euri-packages/packages/cnchi/PKGBUILD
T
c-ludenberg 73debdcfb1 Add Cnchi PKGBUILD with local package support
- Add packages/cnchi/PKGBUILD building from Antergos-NeXT/Cnchi fork
- Add cnchi.install post-install script
- Update packages.yaml to include cnchi
- Update build-packages.py to prefer local PKGBUILDs over AUR
2026-06-08 18:27:40 +02:00

76 lines
1.8 KiB
Bash

# Maintainer: Celestia Ludenberg <ash8820@proton.me>
# Contributor: Antergos Team
pkgname=cnchi
pkgver=0.16.51
pkgrel=1
pkgdesc="Antergos NeXT graphical installer"
arch=('any')
url="https://github.com/Antergos-NeXT/Cnchi"
license=('GPL3')
depends=(
'gtk3'
'python'
'python-cairo'
'python-gobject'
'python-dbus'
'python-requests'
'python-chardet'
'python-feedparser'
'python-idna'
'python-mako'
'python-geoip2'
'python-maxminddb'
'python-passlib'
'pyalpm'
'python-pyparted'
'parted'
'dosfstools'
'mtools'
'ntfs-3g'
'upower'
'gocryptfs'
'iso-codes'
'python-libnacl'
)
makedepends=('git')
install=cnchi.install
source=("${pkgname}::git+https://github.com/Antergos-NeXT/Cnchi.git#branch=0.16.x")
sha256sums=('SKIP')
package() {
cd "${srcdir}/${pkgname}"
# Install Cnchi Python modules
install -dm755 "${pkgdir}/usr/share/cnchi"
cp -r src/* "${pkgdir}/usr/share/cnchi/"
cp -r data "${pkgdir}/usr/share/cnchi/"
cp -r ui "${pkgdir}/usr/share/cnchi/"
cp -r scripts "${pkgdir}/usr/share/cnchi/"
cp -r po "${pkgdir}/usr/share/cnchi/"
cp -r utils "${pkgdir}/usr/share/cnchi/"
cp run "${pkgdir}/usr/share/cnchi/"
cp cnchi.desktop "${pkgdir}/usr/share/cnchi/"
cp requirements.txt "${pkgdir}/usr/share/cnchi/"
# Create executable wrapper
install -dm755 "${pkgdir}/usr/bin"
cat > "${pkgdir}/usr/bin/cnchi" << 'EOF'
#!/bin/bash
exec /usr/bin/python3 /usr/share/cnchi/cnchi.py "$@"
EOF
chmod 755 "${pkgdir}/usr/bin/cnchi"
# Desktop file
install -dm755 "${pkgdir}/usr/share/applications"
cp cnchi.desktop "${pkgdir}/usr/share/applications/"
# Icons
install -dm755 "${pkgdir}/usr/share/icons"
cp -r data/icons/* "${pkgdir}/usr/share/icons/" 2>/dev/null || true
# License
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
cp COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}