aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a1ea9f7d03e0fcf9fd507ae6ffba51e20b303c0 (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
pkgname=nerdfonts-installer-bin
pkgver=2024.10.30.1
pkgrel=1
pkgdesc="Executable binary to install Nerd Fonts"
arch=('x86_64')
url="https://github.com/fam007e/nerd_fonts_installer"
license=('MIT')
depends=('curl' 'unzip' 'fontconfig' 'shc') 
source=("https://github.com/fam007e/nerd_fonts_installer/releases/download/v${pkgver}/nerdfonts-installer-${pkgver}.tar.gz")
sha256sums=('f7b0d2a4b04fe0de1d36819dfc7a4af6804f26c143ea0dc1510d7a3ac5daeafd')

build() {
    # Change to the directory where the script is located
    cd "$srcdir/.."
    
    # Compile the script into a binary
    shc -f nerdfonts_installer.sh -o nerdfonts-installer
}

package() {
    # Change to the directory where the compiled binary is located
    cd "$srcdir/.."
    
    # Install the generated binary to the appropriate directory
    install -Dm755 "nerdfonts-installer" "$pkgdir/usr/bin/nerdfonts-installer"
}