From Ivory Frog, 1 Week ago, written in Plain Text.
Embed
  1. PKGBUIL:D
  2. # Maintainer: nous <[email protected]>
  3.  
  4. pkgbase=artix-branding
  5. pkgname=artix-branding-base
  6. pkgver=20200904
  7. pkgrel=1
  8. pkgdesc="Base branding for Artix ISOs"
  9. arch=('any')
  10. groups=($pkgbase)
  11. url="https://gitea.artixlinux.org/artix/$pkgbase"
  12. depends=('neofetch')
  13. makedepends=('git')
  14. license=('GPL3')
  15. backup=('etc/rc.local')
  16.  
  17. #_commit=253100f10cbe8177c7d7d6e184343a92d5c43c98
  18. #source=("git+${url}.git#commit=${_commit}")
  19. _branch='master'
  20. source=("git+$url.git#branch=${_branch}")
  21. install=$pkgname.install
  22. sha256sums=('SKIP')
  23.  
  24. #prepare() {
  25. #    cd $pkgbase
  26. #    git checkout refactor
  27. #}
  28.  
  29. package_artix-branding-base() {
  30.     cd "$pkgbase/$pkgname"
  31.     git checkout ${_branch}
  32.     install -dm755 $pkgdir/etc
  33.     cp -r etc/* $pkgdir/etc
  34. }
  35.  
  36.  
  37.  
  38.  
  39. artix-branding-base.install
  40. pre_upgrade() {
  41.   if [[ $(vercmp 20200702-1 $2) < 1 ]]; then
  42.     mv -vf /etc/rc.local /etc/rc.local.pacsave-latest
  43.     echo "  The original Artix /etc/rc.local contents"
  44.     echo "  have moved into /etc/local.d/branding.start"
  45.     echo "  Your own /etc/rc.local, if present and not protected by IgnorePkg,"
  46.     echo "   has been backed-up as /etc/rc.local.pacsave-latest"
  47.     echo "  Please, review any changes and merge/delete them accordingly."
  48.   fi
  49. }