summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66e761f49d8760f2adb73b2ece5c5852a749506f (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
# Maintainer: Hari Chalise <harilvfs@chalisehari.com.np>
pkgname=carch-git
_pkgname=carch
pkgver=v3.0.8
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://raw.githubusercontent.com/harilvfs/$_pkgname/refs/heads/main/$_pkgname.desktop"
)
sha256sums=(
    'SKIP' 
    '3efbb7d4863e06b609e48a2f26d1c823bfee7bf5388ef3262fa04d668917cd64' 
    'SKIP' 
    '47cef8973be3ff95c96b4a187c99fa29b43d7ac11b04786fcb479e99861d72be' 
    '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 -Dm644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
}