# Maintainer: paperbenni <paperbenni@gmail.com>
pkgname=instantdepend
pkgrel=2
pkgdesc="meta package for instantOS dependencies"
url="https://github.com/instantOS/packages"
arch=('any')
license=('GPL2')
# Bluetooth management (blueman) is installed by the installer only on
# machines that actually have a bluetooth adapter; keep it optional here so
# machines without hardware don't pull the whole bluetooth stack.
optdepends=('blueman: bluetooth device manager')
depends=(
    'alacarte'
    'arandr'
    'autoconf'
    'automake'
    'autorandr'
    'binutils'
    'bison'
    'bottom'
    'i3status-rust'
    'commandfinder'
    'conky'
    'cpio'
    'dash'
    'git-delta'
    'dialog'
    'dmidecode'
    'dunst'
    'engrampa'
    'exa'
    'fakeroot'
    'fd'
    'feh'
    'ffmpeg'
    'flex'
    'fzf'
    'gcc'
    'git'
    'htop'
    'hyprpolkitagent'
    'inter-font'
    'jq'
    'kitty'
    'libtool'
    'lxappearance'
    'lxqt-policykit'
    'm4'
    'make'
    'mako'
    'mise'
    'mpv'
    'nautilus'
    'neovim'
    'network-manager-applet'
    'noto-fonts'
    'noto-fonts-cjk'
    'noto-fonts-emoji'
    'ttf-liberation'
    'otf-firamono-nerd'
    'otf-ipafont'
    'p7zip'
    'pacman-contrib'
    'patch'
    'pavucontrol'
    'picom'
    'pipewire'
    'pipewire-alsa'
    'pipewire-pulse'
    'pkgconf'
    'playerctl'
    'pluma'
    'slop'
    'starship'
    'subversion'
    'tmux'
    'topgrade-bin'
    'ttf-firacode-nerd'
    'ueberzug'
    'unrar'
    'unzip'
    'wireplumber'
    'wmctrl'
    'xclip'
    'xdotool'
    'xorg-xinput'
    'xorg-xrandr'
    'xorg-xsetroot'
    'yazi'
    'zenity'
    'zoxide'
    'zsh'
)

# metapackage: no sources, nothing to compile.
# Date-based version keeps the "always newest" behavior the VCS source
# previously provided (fresh version per build day).
pkgver=$(date '+%Y%m%d%H%M')

package() {
    depends+=('yay'
        'xdragon'
        'paperbash'
        'rofi'
        'i3-wm'
        'udevwait'
        'plymouth'
        'plymouth-theme-instantos')

    install -dm755 "${pkgdir}/usr/share/instantos"
    printf 'instantdependpackages\n' >"${pkgdir}/usr/share/instantos/dpackages"
}
