#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=zenwalk-gnome-desktop pkgver=3.2.0 zenver=72 pkgrel=3 arch=noarch source=("http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname/zenwalkg3.jpg" \ "http://www.fpmurphy.com/gnome-shell-extensions/activitiesbutton-2.0.tar.gz" \ "Zenwalk.org.desktop" "zengnome-browser" "org.gnome.desktop.background.gschema.xml" \ "org.gnome.desktop.interface.gschema.xml" "org.gnome.shell.gschema.xml" "index.theme" "xdg-user-dirs.sh" "Xsession") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') doinst() { # Update the scrollkeeper database (Remove stale pieces) if [ -x usr/bin/scrollkeeper-update ]; then usr/bin/scrollkeeper-update > /dev/null 2>&1 fi # update the mime desktop database if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database -q fi # update the mime database if [ -x usr/bin/update-mime-database ]; then usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1 fi # glib2 compile schemas if [ -x usr/bin/glib-compile-schemas ]; then usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas fi # Add /dev/shm in fstab sed -i '/\/dev\/shm/d' etc/fstab printf "%-16s %-16s %-11s %-16s %-3s %s\n" "tmpfs" "/dev/shm" "tmpfs" "nodev,nosuid,noexec,rw" "0" "0" >> etc/fstab cat etc/fstab } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "zenwalk-gnome-desktop - The Zenwalk GNOME Desktop environment" "The Zenwalk-gnome-desktop package provides the zenwalk configuration" "for GNOME 3." ) build() { # Install default background picture mkdir -p $startdir/pkg/usr/share/backgrounds/gnome cp -v zenwalkg3.jpg $startdir/pkg/usr/share/backgrounds/gnome/zenwalkg3.jpg # Install and set mouse icon mkdir -p $startdir/pkg/usr/share/icons/default cp -rv index.theme $startdir/pkg/usr/share/icons/default/ # Customize the default gnome theme for zenwalk mkdir -p $startdir/pkg/usr/share/glib-2.0/schemas cp -v *.xml $startdir/pkg/usr/share/glib-2.0/schemas/ # Add the possibility to execute some script in /etc/X11/xinit/xinitrc.d mkdir -p $startdir/pkg/etc/X11/gdm install -p -m 755 Xsession $startdir/pkg/etc/X11/gdm # Add the xdg-user-dirs-upade script mkdir -p $startdir/pkg/etc/X11/xinit/xinitrc.d install -p -m 755 xdg-user-dirs.sh $startdir/pkg/etc/X11/xinit/xinitrc.d # Add the icon near the activity button #tar xvf activitiesbutton-2.0.tar.gz #mkdir -p $startdir/pkg/usr/share/gnome-shell/extensions #cp -a -v activitiesbutton@fpmurphy.com $startdir/pkg/usr/share/gnome-shell/extensions # Install Zenwalk.org shortcut on the desktop # or rather not. It's better in the menu I think anyway and epiphany loads the zenwalk page by default. mkdir -p $startdir/pkg/root/Desktop cp $startdir/src/Zenwalk.org.desktop $startdir/pkg/root/Desktop mkdir -p $startdir/pkg/etc/skel/Desktop cp $startdir/src/Zenwalk.org.desktop $startdir/pkg/etc/skel/Desktop mkdir -p $startdir/pkg/usr/bin cp -v zengnome-browser $startdir/pkg/usr/bin chmod 755 $startdir/pkg/usr/bin/zengnome-browser chown root:root $startdir/pkg/usr/bin/zengnome-browser }