# Maintainer: Drtan Samos <lashdu@drtan.twilightparadox.com>

pkgname=parabola-gnome
pkgver=1.0.1
pkgrel=3
pkgdesc="The Parabola defaults for GNOME"
arch=('any')
url="https://parabolagnulinux.org"
license=('GPL3')
install=$pkgname.install
makedepends=('git')
depends=('dbus-glib' 'parabola-artwork>=1.0' 'parabola-artwork<1.1')
source=("git://projects.parabolagnulinux.org/packages/${pkgname}#tag=v${pkgver}")
sha256sums=('SKIP')

package() {
  cd "${srcdir}/${pkgname}"

  install -d ${pkgdir}/etc/dconf/db/gdm.d/
  install -m644 dconf/db/gdm.d/parabola "${pkgdir}/etc/dconf/db/gdm.d/$(date +%Y%m%d%H%M%S%N)"

  install -d ${pkgdir}/etc/dconf/db/local.d/
  install -m644 dconf/db/local.d/parabola "${pkgdir}/etc/dconf/db/local.d/$(date +%Y%m%d%H%M%S%N)"

  install -d ${pkgdir}/etc/dconf/profile/
  install -m644 dconf/profile/* "${pkgdir}/etc/dconf/profile/"
  
  install -d ${pkgdir}/usr/share/gnome-background-properties/
  install -m644 gnome-background-properties/parabola.xml "${pkgdir}/usr/share/gnome-background-properties/"  
}

