diff --git a/.gitignore b/.gitignore index b01e3c5f..b0b88c8c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,8 +6,6 @@ /build/carch /gtk/carch-gtk /cli/carchcli -/source/zip -PKGBUILD # Logs logs diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000..d5d62770 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Hari Chalise +pkgname=carch-git +_pkgname=carch +pkgver=v3.0.9 +pkgrel=4 +pkgdesc="An automated script for quick & easy Arch Linux system setup" +arch=('x86_64') +url="https://github.com/harilvfs/$_pkgname" +license=('Apache-2.0') +depends=('bash' 'gum' 'figlet' 'pacman' 'unzip' 'python' 'gtk3') +source=( + "https://github.com/harilvfs/$_pkgname/releases/download/$pkgver/scripts.zip" + "https://github.com/harilvfs/$_pkgname/releases/download/$pkgver/carch-gtk" + "https://github.com/harilvfs/$_pkgname/releases/download/$pkgver/carch-gtk.py" + "https://github.com/harilvfs/$_pkgname/releases/download/$pkgver/$_pkgname" + "https://github.com/harilvfs/$_pkgname/releases/download/$pkgver/carchcli" + "https://raw.githubusercontent.com/harilvfs/$_pkgname/refs/heads/main/$_pkgname.desktop" +) +sha256sums=( + 'SKIP' + 'b9ad03d513a315f785b72747956fa1d3ebf6fc78dd71a764f281f61a9abe0fe2' + 'SKIP' + '18c924b27e6ae3ea39c164b8a8d64cff74df6341bcdafc4684e7ab1f3db817cb' + '865621815bce71fca88d3c5251149673d20936656b71fe69510fed594384acc8' + 'SKIP' +) + +conflicts=($_pkgname) +provides=($_pkgname) + +prepare() { + echo "Version=$pkgver" >> "$srcdir/$_pkgname.desktop" +} + +package() { + cd "$srcdir" + + install -d "$pkgdir/usr/bin/scripts" + + unzip "$srcdir/scripts.zip" -d "$pkgdir/usr/bin/scripts" + + install -Dm755 "$srcdir/$_pkgname" "$pkgdir/usr/bin/$_pkgname" + + install -Dm755 "$srcdir/carch-gtk" "$pkgdir/usr/bin/carch-gtk" + install -Dm755 "$srcdir/carch-gtk.py" "$pkgdir/usr/bin/carch-gtk.py" + + install -Dm755 "$srcdir/carchcli" "$pkgdir/usr/bin/carchcli" + install -Dm644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop" +} diff --git a/source/zip/scripts.zip b/source/zip/scripts.zip new file mode 100644 index 00000000..b32fc51d Binary files /dev/null and b/source/zip/scripts.zip differ