#!/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		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=jobo-setup
pkgdesc='Post Install joborun setup script - The script will not alter your system, you will!'
pkgver=0.5
pkgrel=01
groups=(base)
source=(	'README.txt'
	'66.setup'
	'66-user-up'
	'66-user-down'
	'add.66'
	'installX'
	'joborun-setup'
	'removeX'
	'rm.66'
	'X.list')
depends=('zsh')

package() {
  cd "$pkgdir"
    depends=('arch-install-scripts')
    mkdir -p $pkgdir/usr/local/bin
    install -Dm644 $srcdir/README.txt "$pkgdir/root/README.txt"
    install -Dm755 $srcdir/joborun-setup "$pkgdir/usr/local/bin/"
    install -Dm755 $srcdir/66.setup "$pkgdir/usr/local/bin/"
    install -Dm755 $srcdir/66-user-up "$pkgdir/usr/local/bin/"
    install -Dm755 $srcdir/66-user-down "$pkgdir/usr/local/bin/"
    install -Dm755 $srcdir/add.66 "$pkgdir/usr/local/bin/"
    install -Dm755 $srcdir/installX "$pkgdir/usr/local/bin/"
    install -Dm755 $srcdir/removeX "$pkgdir/usr/local/bin/"
    install -Dm755 $srcdir/rm.66 "$pkgdir/usr/local/bin/"
    install -Dm644 $srcdir/X.list "$pkgdir/usr/local/bin/"
}

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

arch=(x86_64)

license=(ISC)

sha256sums=(5c57b7e372ce103afa24acfd4479a85c80c6980e06d580d5bee6c6b3f24174ab  # README.txt
	d6a93376647d16e04e2e8e3a7d7f6379a3727c5a695fac15e40813eaf627aa4a  # 66.setup
	53a968efacc805e2b8ea7e7d717f67909fba975e587612bc4accd83cba8edf32  # 66-user-up
	d8abf5f581779d53eb2f81dd9f5f68596867eddbf76edcf79c6de5873abbac86  # 66-user-down
	18ef4f0e1cbb60f90a6aa6456f24aec7eea990f6f3f220288303d4dc4b95dc93  # add.66
	6da18c734fdcd67386e1ef6be59423a3ed59631c5541b23cf78050a5891421a8  # installX
	33de4e4329d0e4c8f2a278e2bd726db5ee5fff59e943fb07004278d4a0d1d20a  # joborun-setup
	a3994c515f0129ed7a6d88e9de01e7fc64dacbc5f7ca2e29e2377f16461a1bee  # removeX
	e078695327e40790c675d04ed9d8144840ee64a90b8d9d782a7d843109eb9d52  # rm.66
	3bc8aa0ad93233ef9c191c3a2d37ae9f1592a48add8a23b55afac1d7f4397762) # X.list

##  278d6a2f13bdc4ec1b11999b737101275758f6695e9513b0f2f230a29db9a09b  jobo-setup-0.5-01-x86_64.pkg.tar.lz
