~dieggsy/arch-pkgs

7d1f99dca5e1a00415f5184377e01150f165e4e0 — dieggsy 4 years ago 8c0b1ad
Use split package for dieggsy-{base,server}

- This makes it so I can have linux-lts for servers but regular linux
  for base.
- Also organize deps a bit
1 files changed, 49 insertions(+), 44 deletions(-)

M dieggsy-base/PKGBUILD
M dieggsy-base/PKGBUILD => dieggsy-base/PKGBUILD +49 -44
@@ 1,57 1,62 @@
# Maintainer: dieggsy <dieggsy@pm.me>

pkgname=dieggsy-base
pkgver=3.2
pkgname=(dieggsy-base dieggsy-server)
pkgver=3.4
pkgrel=1
pkgdesc="Base system meta-package"
arch=('any')
url="https://github.com/dieggsy/arch-pkgs"
license=('MIT')
groups=('dieggsy')
depends=(ccache
         cronie
         gdb
         git
         htop
         mlocate
         autossh
         ncdu
         ntp
         neovim
         pacman-contrib
         python-neovim
         reflector
         ripgrep
         rsync
         stow
         yay-bin
         zsh
         zsh-autopair-git
         zsh-autosuggestions
         zsh-completions
         zsh-history-substring-search

         # base
         base
         linux
         linux-firmware
         diffutils
         man-db
         man-pages
         openssh
         reflector

         # base-devel
         autoconf
         automake
         gcc
         make
         patch
         pkgconf
         sudo
         util-linux)

# base package + stuff I need from old base group
# Note: the linux kernel dependency is added in the -base and -server packages
# explicitly, as I prefer the -lts kernel on servers.
depends=(base linux-firmware diffutils man-db man-pages)

# from base-devel
depends+=(autoconf automake gcc make patch pkgconf sudo util-linux)

# other devel
depends+=(ccache gdb)

# shell (zsh)
depends+=(zsh
          zsh-autopair-git # aur !
          zsh-autosuggestions
          zsh-completions
          zsh-history-substring-search)

# ssh
depends+=(openssh autossh)

# package management
depends+=(yay-bin # aur !
          pacman-contrib
          reflector)

# services
depends+=(cronie ntp logrotate)

# system monitoring
depends+=(ncdu htop)

# editor
depends+=(neovim python-pynvim)

# other
depends+=(git mlocate ripgrep rsync stow)

package_dieggsy-base() {
    depends+=(linux)
}

package_dieggsy-server() {
    depends+=(linux-lts)
}

post_install() {
    pacman -Dq --asdeps $(pacman -Qqi dieggsy-base | grep "Depends On" | cut -d: -f2)
    systemctl enable --now cronie.service
    systemctl enable --now ntpd.service
    systemctl enable --now paccache.timer