summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorQue Quotion2015-10-24 01:55:45 +0900
committerQue Quotion2015-10-24 01:55:45 +0900
commit249d97ae1b6aa168c9d8fd1568b988fe2e665c35 (patch)
tree37042d8bceb2e26eb5b4ef7b7d78d2ff27ae3eb9
downloadaur-249d97ae1b6aa168c9d8fd1568b988fe2e665c35.tar.gz
Initial upload
-rw-r--r--.SRCINFO38
-rw-r--r--.gitignore55
-rw-r--r--PKGBUILD72
-rw-r--r--gala.install14
-rw-r--r--gnome-fallback-media-keys-helper-pantheon.desktop10
-rwxr-xr-xpantheon-session.sh18
6 files changed, 207 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7697d23f708
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,38 @@
+pkgbase = pantheon-workarounds
+ pkgdesc = Workarounds for modular and minimal Pantheon Desktop Environments
+ pkgver = 3
+ pkgrel = 3
+ url = https://launchpad.net/gala
+ install = gala.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = bzr
+ makedepends = gnome-common
+ makedepends = intltool
+ depends = gconf
+ depends = gnome-keyring
+ depends = gnome-settings-daemon
+ depends = gnome-settings-daemon-compat
+ depends = gnome-session
+ depends = polkit-gnome
+ depends = xdg-user-dirs-gtk
+ provides = gala=
+ provides = gala-bzr=
+ provides = libgala.so=0-64
+ provides = pantheon-session=
+ provides = pantheon-session-bzr=
+ conflicts = gala
+ conflicts = gala-bzr
+ conflicts = pantheon-session
+ conflicts = pantheon-session-bzr
+ source = pantheon-session::bzr+lp:~elementary-os/elementaryos/pantheon-xsession-settings
+ source = pantheon-session.sh
+ source = gnome-fallback-media-keys-helper-pantheon.desktop
+ sha512sums = SKIP
+ sha512sums = b2630c31724675c247b7017eea0862c76ec80a9f46691b65bc7f76702a9cacda46d9350d3bddc05ee21ded154f4d8ab277d536439152972dca0764f28e62cb38
+ sha512sums = c17ff9b6eb001b03d4eecd68fef1fbed9c90dfec0fb61140a639bd4743ffac7941095b5cef3b3d1e10cbb7602a17f7edaa9ebb7fce81e564e0950263dd2ead4a
+ sha512sums = b01a18bb7829eb7a48b72c90bdf5aa5913c24247426e0bfc509cba22f49d2d8c9eb301e1937b70f3f7f01a873c987e0bdea6dd5f24f8d900b952188fa5635d39
+
+pkgname = pantheon-workarounds
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..ef6d0ff0360
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,55 @@
+# Compiled source #
+###################
+*.com
+*.class
+*.dll
+*.exe
+*.o
+*.so
+
+# Packages #
+############
+# it's better to unpack these files and commit the raw source
+# git has its own built in compression methods
+*.7z
+*.dmg
+*.gz
+*.iso
+*.jar
+*.rar
+*.tar
+*.zip
+*.xz
+
+# Archlinux Packaging #
+#######################
+*.tar
+*.tar.*
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+pkg/
+src/
+
+# Logs and databases #
+######################
+*.log
+*.sql
+*.sqlite
+
+# OS generated files #
+######################
+.DS_Store
+.DS_Store?
+._*
+.Spotlight-V100
+.Trashes
+ehthumbs.db
+Thumbs.db
+*~
+
+# Particulars #
+###############
+pantheon-session/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c7bf36850a2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,72 @@
+# Maintainer: Que Quotion <quequotion@bugmenot.org>
+# Contributor: Maxime Gauduin <alucryd@archlinux.org>
+# Contributor: Ner0 <darkelfdarkelf666@yahoo.co.uk>
+
+pkgname=pantheon-workarounds
+pkgver=3
+pkgrel=3
+pkgdesc='Workarounds for modular and minimal Pantheon Desktop Environments'
+arch=('i686' 'x86_64')
+url='https://launchpad.net/gala'
+license=('GPL3')
+depends=('gconf' gnome-{keyring,settings-daemon{,-compat},session}
+ 'polkit-gnome' 'xdg-user-dirs-gtk')
+makedepends=('bzr' 'gnome-common' 'intltool')
+conflicts=(gala{,-bzr} pantheon-session{,-bzr})
+install='gala.install'
+source=("pantheon-session::bzr+lp:~elementary-os/elementaryos/pantheon-xsession-settings"
+ 'pantheon-session.sh'
+ 'gnome-fallback-media-keys-helper-pantheon.desktop')
+sha512sums=('SKIP'
+ 'b2630c31724675c247b7017eea0862c76ec80a9f46691b65bc7f76702a9cacda46d9350d3bddc05ee21ded154f4d8ab277d536439152972dca0764f28e62cb38'
+ 'c17ff9b6eb001b03d4eecd68fef1fbed9c90dfec0fb61140a639bd4743ffac7941095b5cef3b3d1e10cbb7602a17f7edaa9ebb7fce81e564e0950263dd2ead4a'
+ 'b01a18bb7829eb7a48b72c90bdf5aa5913c24247426e0bfc509cba22f49d2d8c9eb301e1937b70f3f7f01a873c987e0bdea6dd5f24f8d900b952188fa5635d39')
+
+prepare() {
+ #Some components expect gala's schema, but do not really depend on gala
+ bzr cat lp:gala/data/org.pantheon.desktop.gala.gschema.xml.in.in > "${srcdir}"/org.pantheon.desktop.gala.gschema.xml
+
+ cd "${srcdir}"
+ sed 's|@GETTEXT_PACKAGE@|gala|' -i org.pantheon.desktop.gala.gschema.xml
+ sed 's|<_|<|' -i org.pantheon.desktop.gala.gschema.xml
+ sed 's|/_|/|' -i org.pantheon.desktop.gala.gschema.xml
+
+ sed 's|policykit-1|polkit|' -i pantheon-session/autostart/polkit-gnome-authentication-agent-1-pantheon.desktop
+
+ export pkgvergala="$(printf "r%s" "$(bzr revno lp:gala)")"
+ cd "pantheon-session"
+ export pkgverpantheonsession="$(printf "r%s" "$(bzr revno)")"
+
+ # TODO: sort and tweak pantheon-session's settings
+
+ # This space reserved for pantheon-default-settings(-bzr)
+}
+
+#Yes, we have to do this here.
+provides=(gala{,-bzr}="$pkgvergala" 'libgala.so=0-64'
+ pantheon-session{,-bzr}="$pkgverpantheonsession")
+
+package() {
+ cd "${srcdir}"/
+ install -Dm644 "${srcdir}"/org.pantheon.desktop.gala.gschema.xml \
+ "${pkgdir}"/usr/share/glib-2.0/schemas/org.pantheon.desktop.gala.gschema.xml
+
+ cd "${srcdir}"/pantheon-session
+
+ mkdir -p "${pkgdir}"/{etc/xdg,usr/share/pantheon}
+ cp -dr --no-preserve='ownership' autostart "${pkgdir}/etc/xdg/"
+ cp -dr --no-preserve='ownership' unity-greeter "${pkgdir}/usr/share/"
+ cp -dr --no-preserve='ownership' applications "${pkgdir}/usr/share/pantheon/"
+
+ install -Dm644 "${srcdir}"/gnome-fallback-media-keys-helper-pantheon.desktop \
+ "${pkgdir}"/etc/xdg/autostart/gnome-fallback-media-keys-helper-pantheon.desktop
+
+ # This space reserved for pantheon-default-settings-bzr
+
+ find "${pkgdir}" -type d -exec chmod 755 {} +
+ find "${pkgdir}" -type f -exec chmod 644 {} +
+
+# gnome-session workaround
+ install -Dm755 "${srcdir}"/pantheon-session.sh "${pkgdir}"/usr/bin/pantheon-session
+}
+
diff --git a/gala.install b/gala.install
new file mode 100644
index 00000000000..b0835e03592
--- /dev/null
+++ b/gala.install
@@ -0,0 +1,14 @@
+post_install() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ gtk-update-icon-cache -ftq usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/gnome-fallback-media-keys-helper-pantheon.desktop b/gnome-fallback-media-keys-helper-pantheon.desktop
new file mode 100644
index 00000000000..c476e57a66a
--- /dev/null
+++ b/gnome-fallback-media-keys-helper-pantheon.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Media keys
+Exec=/usr/lib/gnome-settings-daemon/gnome-fallback-media-keys-helper
+Icon=multimedia
+Terminal=false
+Type=Application
+Categories=
+NoDisplay=true
+OnlyShowIn=Pantheon;
+X-GNOME-Autostart-Notify=true
diff --git a/pantheon-session.sh b/pantheon-session.sh
new file mode 100755
index 00000000000..273b97d8ee0
--- /dev/null
+++ b/pantheon-session.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+export XDG_CURRENT_DESKTOP=Pantheon
+if [ -n "$1" ]; then
+ case $1 in
+ lite) # Reduced resource usage with openbox in place of gala
+ exec gnome-session --session pantheon-openbox
+ ;;
+ 3d) # Improved functionality and decor with compiz in place of gala
+ exec gnome-session --session pantheon-compiz
+ ;;
+ *) # Other custom sessions
+ exec gnome-session --session pantheon-$1
+ ;;
+ esac
+else
+ exec gnome-session --session gnome-shell
+fi