Skip to content

Commit

Permalink
Bring Back Imp Stuffs (#168)
Browse files Browse the repository at this point in the history
Co-authored-by: aayush <177418358+aayushrg7@users.noreply.github.com>
Co-authored-by: Smriti Bhandari <187972284+smritics@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 6, 2024
1 parent 339dc0c commit 5f7d4ce
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
/build/carch
/gtk/carch-gtk
/cli/carchcli
/source/zip
PKGBUILD

# Logs
logs
Expand Down
49 changes: 49 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Maintainer: Hari Chalise <harilvfs@chalisehari.com.np>
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"
}
Binary file added source/zip/scripts.zip
Binary file not shown.

0 comments on commit 5f7d4ce

Please sign in to comment.