[arch-commits] Commit in lxqt-common/trunk (PKGBUILD lxqt-common.install)

Balló György bgyorgy at archlinux.org
Sun Jul 5 18:23:03 UTC 2015


    Date: Sunday, July 5, 2015 @ 20:23:03
  Author: bgyorgy
Revision: 136447

upgpkg: lxqt-common 0.9.1-2

Apply some upstream fixes (FS#44123)

Added:
  lxqt-common/trunk/lxqt-common.install
Modified:
  lxqt-common/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   28 ++++++++++++++++++++++++++--
 lxqt-common.install |   14 ++++++++++++++
 2 files changed, 40 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-07-05 12:13:07 UTC (rev 136446)
+++ PKGBUILD	2015-07-05 18:23:03 UTC (rev 136447)
@@ -3,17 +3,41 @@
 
 pkgname=lxqt-common
 pkgver=0.9.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Common data to run a LXQt session."
 arch=("any")
 url="http://lxqt.org"
 license=("GPL2")
-depends=("bash" "hicolor-icon-theme")
+depends=("bash" "hicolor-icon-theme" "xdg-utils")
 makedepends=("cmake" "liblxqt" "qt5-tools")
+install=$pkgname.install
 source=("http://downloads.lxqt.org/lxqt/$pkgver/$pkgname-$pkgver.tar.xz")
 sha256sums=("6e572cb10a1619dcfd51bdd33802a71d4556a55ece0bc781c1cb41d972e5734d")
 
 
+prepare() {
+	cd "$srcdir/$pkgname-$pkgver"
+
+	# Make themes' directories' names lowercase again
+	# https://github.com/lxde/lxqt-common/commit/15fd2d8
+	for i in Ambiance Dark Frost Kde-plasma Light
+		do mv themes/$i `echo themes/$i | tr [:upper:] [:lower:]`
+	done
+
+	# Adjust default wallpaper to default theme
+	# https://github.com/lxde/lxqt-common/commit/3296e2c
+	sed -i 's|light/simple_blue_widescreen.png|frost/numix.png|' \
+		config/pcmanfm-qt/lxqt/settings.conf.in
+
+	# Enable the "leave confirmation dialog" by default
+	# https://github.com/lxde/lxqt-common/commit/2062770
+	sed -i '/window_manager/a leave_confirmation=true' config/session.conf
+
+	# Set LibreOffice's plugin env var to kde4 
+	# https://github.com/lxde/lxqt-common/commit/a211dd5
+	sed -i 's/SAL_USE_VCLPLUGIN=kde$/SAL_USE_VCLPLUGIN=kde4/' startlxqt.in
+}
+
 build() {
 	mkdir -p build
 	cd build

Added: lxqt-common.install
===================================================================
--- lxqt-common.install	                        (rev 0)
+++ lxqt-common.install	2015-07-05 18:23:03 UTC (rev 136447)
@@ -0,0 +1,14 @@
+post_install() {
+	xdg-icon-resource forceupdate
+}
+
+post_upgrade() {
+	if [ "$(vercmp 0.9.1-2 "$2")" -eq 1 ]; then
+		printf '==> Theme paths have been changed. User configurations may need to be updated.\n'
+	fi
+	xdg-icon-resource forceupdate
+}
+
+post_remove() {
+	post_install $1
+}



More information about the arch-commits mailing list