jobcore/jobbot/PKGBUILD

68 lines
3.1 KiB
Bash

#!/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 |---------------------------------------
pkgbase=jobbot
pkgname=(jobbot jobbot1 jobbot2)
pkgver=0.5
pkgrel=03
groups=(jobbot)
source=(README-jobbot.txt Qsq ckchroot)
install=$pkgbase.install
package_jobbot() {
pkgdesc='Dummy package to replace previous jobbot on current building environments with jobbot1 & 2'
cd $pkgdir
conflicts=(jobbot1)
}
package_jobbot1() {
cd "$pkgdir"
pkgdesc='Minimal set of packages to maintain the building chroot for JOBORun Linux while building'
replaces=(jobbot)
conflicts=(jobbot)
depends=( acl archlinux-keyring obarun-keyring joborun-keyring attr audit bash
binutils brotli bzip2 ca-certificates ca-certificates-mozilla ca-certificates-utils
coreutils curl diffutils e2fsprogs elfutils expat fakeroot file
filesystem findutils flex gawk gc gcc gcc-libs gdbm glib2 glibc gmp gnupg gnutls gpgme
grep groff guile gzip hwdata iana-etc icu iproute2 iptables iputils jansson json-c
keyutils kmod krb5 less libarchive libassuan libcap libcap-ng libelf libeudev libffi
libgcrypt libgpg-error libidn2 libisl libksba libldap libmnl libmpc libnetfilter_conntrack
libnfnetlink libnftnl libnghttp2 libnghttp3 libnl libp11-kit libpcap libpsl libsasl
libseccomp libsecret libssh2 libtasn1 libtirpc libtool libunistring libusb libutempter
libverto libxcrypt licenses linux-api-headers lz4 lzip m4 make mpfr nano ncurses nettle
npth numactl openssl p11-kit pacman pacman-mirrorlist pam pambase patch pciutils pcre
pcre2 perl pinentry pkgconf procps-ng psmisc readline sed shadow sqlite sudo tar texinfo
tpm2-tss tzdata util-linux util-linux-libs which xz yajl zlib zsh zstd )
install -d -m777 "$pkgdir"/src
install -Dm644 "$srcdir"/README-jobbot.txt "$pkgdir"/src/README-jobbot.txt
install -Dm644 "$srcdir"/Qsq "$pkgdir"/src/Qsq # When jobbot is installed this can be produced
# ... by running 'pacman -Qsq >/src/Qsq'
install -Dm755 "$srcdir"/ckchroot "$pkgdir"/usr/local/bin/ckchroot
# This ckchroot script runs 'pacman -Qsq >/tmp/Qsq' and then compares it to /src/Qsq
}
package_jobbot2() {
cd "$pkgdir"
pkgdesc='Minimal set of packages to maintain the building chroot for JOBORun Linux in between builds'
depends=(jobbot1 cower opensysusers package-query pacman-contrib wget)
conflicts=(dbus db)
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('ISC')
sha256sums=(8a59c39d01a41cc7146da2c4b4f1643db361ea247e91a8d01c6a191a84fa3d14 # README-jobbot.txt
eae9ed33db803cef46fe8257e7236f82448ac3d8c0750b71516546c723b2002a # Qsq
50febbb21bb779f43b93c7f8e65ba4cbff0c6b32cddd45ecb9118fc801581d99) # ckchroot
## ee1830426aac6878bf6d42142bdcae2ac53809fb64b4013bded17620949e7231 jobbot-0.5-03-x86_64.pkg.tar.lz
## b8f864b02164263ea485daf07bf2039ecded79d2b92df0046f0d9b252c7edebd jobbot1-0.5-03-x86_64.pkg.tar.lz
## 202e483675032f4bda591f30b11d0a272d8815690cab92836e2b57080f9a18f3 jobbot2-0.5-03-x86_64.pkg.tar.lz