From Sweet Partdridge, 1 Year ago, written in Plain Text.
Embed
  1. # Maintainer: artoo <[email protected]>
  2. # Maintainer: nous <[email protected]>
  3.  
  4. pkgbase=desktop-presets
  5. #pkgbase=artix-${_pkgbase}
  6. pkgname=('artix-common-presets' 'artix-mate-presets' 'artix-lxqt-presets' 'artix-lxde-presets')
  7. pkgver=0.8+16+gac1c8c1
  8. pkgrel=1
  9. pkgdesc='Artix graphical ISO presets'
  10. arch=('any')
  11. groups=(${pkgbase})
  12. url="https://gitea.artixlinux.org/artix/desktop-presets"
  13. license=('GPL')
  14. depends=('artix-dark-theme' 'artix-common-presets')
  15. conflicts=('desktop-presets')
  16. makedepends=('git')
  17. _commit=ac1c8c1edb95d26953966386177d9d815d1b16b8
  18. source=("git+$url.git#commit=${_commit}")
  19. sha256sums=('SKIP')
  20.  
  21. pkgver() {
  22.     cd ${pkgbase}
  23.     git describe --tags | sed 's/-/+/g'
  24. }
  25.  
  26. _inst_dir(){
  27.     cd ${pkgbase} #-${pkgver}
  28.     local profile="$1"
  29.     if [[ -d $profile/skel ]];then
  30.         install -d ${pkgdir}/etc
  31.         cp -vr $profile/skel ${pkgdir}/etc
  32.     fi
  33.     if [[ -d $profile/schemas ]];then
  34.         install -d ${pkgdir}/usr/share/glib-2.0
  35.         cp -vr $profile/schemas ${pkgdir}/usr/share/glib-2.0
  36.     fi
  37.     if [[ -d $profile/dconf ]];then
  38.         install -d ${pkgdir}/etc
  39.         cp -vr $profile/dconf ${pkgdir}/etc
  40.     fi
  41.     if [[ -d $profile/scripts ]];then
  42.         install -d ${pkgdir}/usr/bin
  43.         cp -v $profile/scripts/* ${pkgdir}/usr/bin
  44.     fi
  45. }
  46.  
  47. package_artix-common-presets() {
  48. pkgdesc='Artix ISO presets, common files'
  49.     _inst_dir 'common'
  50. }
  51.  
  52. package_artix-mate-presets() {
  53. pkgdesc='Artix MATE ISO presets'
  54. provides=('desktop-presets')
  55.     _inst_dir 'mate'
  56. }
  57.  
  58. package_artix-lxqt-presets() {
  59. pkgdesc='Artix LXQt ISO presets'
  60. provides=('desktop-presets')
  61.     _inst_dir 'lxqt'
  62. }
  63.  
  64. package_artix-lxde-presets() {
  65. pkgdesc='Artix LXDE ISO presets'
  66. provides=('desktop-presets')
  67.     _inst_dir 'lxde'
  68. }
  69.