commit 5d36c747fc3bbb4df230ef89a3fca17ae72d9fb6 Author: davedatum Date: Sat Oct 26 21:51:00 2019 +0100 init diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..055dcc9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: davedatum + +pkgbase=tromjaro-settings +pkgname=("tromjaro-gnome-settings" "tromjaro-gdm-branding") +pkgver=1.0 +pkgrel=1 +arch=("any") +url="https://gitlab.com/tromsite/tromjaro/tromjaro-settings" +license=("GPL") +source=("tromjaro-gnome-settings::git+$url.git" + "artwork::git+https://gitlab.com/tromsite/tromjaro/artwork.git" + "tromjaro-branding-install.hook" + "tromjaro-branding-remove.hook") +makedepends=("git") +sha256sums=() + +_inst_dir(){ + install -d $pkgdir/etc + cp -r $srcdir/$pkgbase/skel $pkgdir/etc + + install -dm700 ${srcdir}/${pkgbase}/skel/.mozilla ${pkgdir}/etc/skel/.mozilla + install -dm700 ${srcdir}/${pkgbase}/skel/.config/libreoffice/4 ${pkgdir}/etc/skel/.config/libreoffice/4 + + install -d $pkgdir/usr/share/glib-2.0/schemas + cp $srcdir/$pkgbase/schemas/99_tromjaro-settings.gschema.override $pkgdir/usr/share/glib-2.0/schemas +} + +package_tromjaro-settings() { + +pkgname=tromjaro-settings +pkgdesc="TROMjaro Settings" +depends=('gnome-shell') + + _inst_dir + + install -Dm644 ${srcdir}/${pkgbase}/schemas/user ${pkgdir}/etc/dconf/profile/user + install -Dm644 ${srcdir}/${pkgbase}/schemas/10_tromjaro-defaults ${pkgdir}/etc/dconf/db/site.d/10_tromjaro-defaults + +} + +package_tromjaro-branding() { + +pkgname=tromjaro-gdm-branding +pkgdesc="TROMjaro Branding" +depends=('gnome-shell' 'dconf') + + install -Dm644 ${srcdir}/${pkgbase}/schemas/gdm ${pkgdir}/etc/dconf/profile/gdm + install -Dm644 ${srcdir}/${pkgbase}/schemas/10_tromjaro-branding ${pkgdir}/etc/dconf/db/gdm.d/10_tromjaro-branding + + install -Dm644 ${srcdir}/artwork/tromjaro-logo.png ${pkgdir}/usr/share/icons/manjaro/maia/tromjaro-logo.png + install -Dm644 ${srcdir}/tromjaro-gdm-branding-install.hook ${pkgdir}/usr/share/libalpm/hooks/tromjaro-gdm-branding-install.hook + install -Dm644 ${srcdir}/tromjaro-gdm-branding-remove.hook ${pkgdir}/usr/share/libalpm/hooks/tromjaro-gdm-branding-remove.hook + +} \ No newline at end of file diff --git a/tromjaro-branding-install.hook b/tromjaro-branding-install.hook new file mode 100644 index 0000000..1d400f0 --- /dev/null +++ b/tromjaro-branding-install.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Type = Package +Target = tromjaro-branding + +[Action] +Description = Install TROMjaro Branding +When = PostTransaction +Exec = /bin/sh -c 'dconf update' \ No newline at end of file diff --git a/tromjaro-branding-remove.hook b/tromjaro-branding-remove.hook new file mode 100644 index 0000000..bc3154c --- /dev/null +++ b/tromjaro-branding-remove.hook @@ -0,0 +1,9 @@ +[Trigger] +Operation = Remove +Type = Package +Target = tromjaro-branding + +[Action] +Description = Remove TROMjaro Branding +When = PreTransaction +Exec = /bin/sh -c 'rm -f /etc/dconf/db/gdm' \ No newline at end of file