summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgit user2023-07-24 10:56:20 +0200
committergit user2023-07-24 10:56:20 +0200
commit9d31c1210669a65884034dc4dbbdf805c8b0c9f2 (patch)
tree64bba2ddbe3393fb38493c15ff0fe70fa5fa2a0f
parentd9acea385f7666ed93f3ac208a7f2360d3ffed6c (diff)
downloadaur-gtk3-nocsd-git.tar.gz
Do not automatically install the `xinitrc.d` file, and add a note in the `.install` script how to use/ activate this package.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
-rw-r--r--gtk3-nocsd.install14
3 files changed, 17 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f74c96c2bcf2..7ec7ab9d49b8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gtk3-nocsd-git
pkgdesc = A LD_PRELOAD library to disable gtk+ 3 client side decoration.
pkgver = 3.0.8+2.r84.20221015.a356bf7
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/fredldotme/gtk3-nocsd
install = gtk3-nocsd.install
arch = i686
@@ -19,6 +19,6 @@ pkgbase = gtk3-nocsd-git
source = gtk3-nocsd.install
sha256sums = SKIP
sha256sums = b6a314bb7482f1de024805d669750957c41e350a82f87dd16ca72760d7d8f9f4
- sha256sums = 9827e52fb9d7385c4ec155411f8d2b1c2225878c107a1e2768f77f73589e99e4
+ sha256sums = e28ad755f953c32e02406bfe77b8cd9aa71c5f5f5a3284fb4244ece853ff272b
pkgname = gtk3-nocsd-git
diff --git a/PKGBUILD b/PKGBUILD
index 52a7588d1c5e..42683b33812a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ _gitname="${_pkgname}"
_gituser='fredldotme'
pkgname="${_pkgname}-git"
pkgver=3.0.8+2.r84.20221015.a356bf7
-pkgrel=1
+pkgrel=2
pkgdesc="A LD_PRELOAD library to disable gtk+ 3 client side decoration."
arch=(
"i686"
@@ -37,7 +37,7 @@ source=(
sha256sums=(
'SKIP'
'b6a314bb7482f1de024805d669750957c41e350a82f87dd16ca72760d7d8f9f4'
- '9827e52fb9d7385c4ec155411f8d2b1c2225878c107a1e2768f77f73589e99e4'
+ 'e28ad755f953c32e02406bfe77b8cd9aa71c5f5f5a3284fb4244ece853ff272b'
)
prepare() {
@@ -82,5 +82,5 @@ package() {
done
cd "${srcdir}"
- install -Dvm0755 '30-gtk3-nocsd.xinit.sh' "${pkgdir}/etc/X11/xinit/xinitrc.d/30-gtk3-nocsd.sh"
+ install -Dvm0755 '30-gtk3-nocsd.xinit.sh' "${pkgdir}/usr/share/doc/${_pkgname}/etc/xinit/xinitrc.d/30-gtk3-nocsd.sh"
}
diff --git a/gtk3-nocsd.install b/gtk3-nocsd.install
index 604ac622dd4b..f1c8007652c3 100644
--- a/gtk3-nocsd.install
+++ b/gtk3-nocsd.install
@@ -1,6 +1,16 @@
function post_install {
- echo "You need to restart your X session to apply the changes."
- echo "Note that in gnome sessions, or when the files in '/etc/X11/xinit/xinitrc.d/' do not get executed, this package is no automatically activated and must be used per application by '/usr/bin/gtk3-nocsd'."
+ printf '\n'
+ printf '%s\n' "=== gtk3-nocsd: Usage instructions. === "
+ printf '\n'
+ printf '%s\n' "In order to automatically preload 'libgtk3-nocsd.so' at X session startup, copy"
+ printf '%s\n' "'/usr/share/doc/gtk3-nocsd/etc/xinit/xinitrc.d/30-gtk3-nocsd.sh' to '/etc/X11/xinit/xinitrc.d/30-gtk3-nocsd.sh'."
+ printf '%s\n' "Otherwise, individual programmes can be run with GTK3 client side decoration disabled by running them"
+ printf '%s\n' "as 'gtk3-nocsd <command> [<command arguments>]'. See 'man 1 gtk3-nocsd'."
+ printf '\n'
+ printf '%s\n' "Note that even when '/etc/X11/xinit/xinitrc.d/30-gtk3-nocsd.sh' is copied, in gnome sessions, or when"
+ printf '%s\n' "the files in '/etc/X11/xinit/xinitrc.d/' do not get executed, gtk3-nocsd is no automatically activarted"
+ printf '%s\n' "and must also be used per application via 'gtk3-nocsd <command> [<command arguments>]'."
+ printf '\n'
}
function post_upgrade {