#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website		: http://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=base
pkgver=10.0
pkgrel=05
pkgdesc='Minimal set of packages to define a basic JOBORun Linux installation'
url='http://pozol.eu'
groups=( jobbase )
source=( README.txt )
optdepends=('linux-lts: recommended kernel'
	'linux: alternative latest lts kernel'
	's6-suite: s6 and 66 system and basic booting necessities'
	'grub: bootloader capable of a multiboot system of various OSes'
	'limine: a new bootloader handling GPT/MBR BIOS/EFI with same config'
	'syslinux: alternative bootloader lighter than grub' )

makedepends=('sh' 'glibc')

package() {

  depends=(
	# very very core
	'base' 'filesystem' 'gcc-libs' 'glibc' 'bash'

	# distro defined requirements
	'licenses' 'pacman' 'nano' 'zsh' 'jobo-setup' 'arch-install-scripts'

	# kernel
	# linux-lts recommended but not enforced as with other distros
	#  we deeply believe in educated choice, and since someone may want
	#  to try the system as a chroot of another, a kernel is not mandatory

	# keyrings GnuPG keys of repo and pkg signatures
	# they are included as dependencies in pacman
	##  'archlinux-keyring' 'obarun-keyring' 'joborun-keyring'

	# POSIX tools
	'coreutils' 'file' 'findutils' 'grep' 'procps-ng' 'sed' 'tar'

	# standard linux toolset
	'pciutils' 'psmisc' 'shadow' 'util-linux' 'bzip2' 'gzip' 'lzip' 'xz' 'sudo'

	# init, service supervisors, mdev
	'runit' 'runit-rc' 'joborun66' 'eudev'
	
	# networking, ping, etc
	'inetutils' 'iputils' 'iproute2' 'net-tools' 'dhclient' 'wpa_supplicant' 'ntp'
	
	# service scripts - no dependencies
	'runit-service-scripts'

	# fonts for console
	'terminus-font'
  )

  cd "$pkgdir"
  mkdir -m777 "$pkgdir"/src
  install -Dm644 "$srcdir"/README.txt "$pkgdir"/src/README.txt
}

#---- arch license gpg-key & sha256sums ----

arch=(x86_64)

license=('ISC')

sha256sums=(1fdbd46fc0e2ed0bd25c4164e841a0bc55337a37970035c5dc10df333e577aa4) # README.txt

##  f1c5eeb0da83ccb5277aea803510509d355ea228ed07e222f940e470b819c1d0  base-10.0-05-x86_64.pkg.tar.lz
