# Maintainer: bill-auger <bill-auger@programmer.net>


pkgname=parabola-laf
pkgver=0.15
pkgrel=2
pkgdesc="User skeleton, artwork, and utilities for Parabola graphical desktop systems"
arch=('any')
license=('GPL')
url=https://wiki.parabola.nu/Parabola-LAF

# FIXME: depends=('gxmessage' 'zenity') https://labs.parabola.nu/issues/2208
depends=('gnu-netcat' 'grub2-theme-gnuaxiom' 'gxmessage' 'parabola-theme-blackmate'
         'qt5ct' 'qt5-styleplugins' 'ttf-dejavu' 'xclip' 'xcursor-flatbed' 'zenity')
makedepends=('git')

_git_tag="v${pkgver}"
source=(git+https://git.parabola.nu/${pkgname}.git#tag=${_git_tag} \
        news                                                       )
sha256sums=('SKIP'                                                            \
            'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855')


package()
{
  mkdir -p                                   ${pkgdir}/usr/share/backgrounds
  cp    -r  ${srcdir}/${pkgname}/backgrounds ${pkgdir}/usr/share/backgrounds/${pkgname}
  mkdir -p                                   ${pkgdir}/usr/share/pixmaps
  cp    -r  ${srcdir}/${pkgname}/banners     ${pkgdir}/usr/share/pixmaps/${pkgname}
  mkdir -p                                   ${pkgdir}/usr/share/${pkgname}/news
  cp        ${srcdir}/news                   ${pkgdir}/usr/share/${pkgname}/news/news-${pkgver}-${pkgrel}
  mkdir -p                                   ${pkgdir}/usr/bin
  cp    -rT ${srcdir}/${pkgname}/bin         ${pkgdir}/usr/bin
  mkdir -p                                   ${pkgdir}/boot
  cp    -rT ${srcdir}/${pkgname}/boot        ${pkgdir}/boot
  mkdir -p                                   ${pkgdir}/etc
  cp    -rT ${srcdir}/${pkgname}/etc         ${pkgdir}/etc
  install -dm750                             ${pkgdir}/root
  cp    -rT ${srcdir}/${pkgname}/root        ${pkgdir}/root
  mkdir -p                                   ${pkgdir}/usr/share/icons
  cp    -r  ${srcdir}/${pkgname}/icons       ${pkgdir}/usr/share/icons/${pkgname}
  mkdir -p                                   ${pkgdir}/etc/skel
  cp    -rT ${srcdir}/${pkgname}/skel        ${pkgdir}/etc/skel
}
