summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSefa Eyeoglu2018-10-25 15:43:37 +0200
committerSefa Eyeoglu2018-10-25 15:43:37 +0200
commit994384c1cbf27f5c06bee81d73da170f3a447496 (patch)
tree4019b17ec0d844c729abad55dfb50f201f35226f
parentf599b9e5e4fec2abdc7f02ccc7d8afa3dde3aada (diff)
downloadaur-994384c1cbf27f5c06bee81d73da170f3a447496.tar.gz
Improve xinitrc; Add Provides attribute
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
-rw-r--r--.SRCINFO5
-rwxr-xr-x30-gtk3-nocsd.sh27
-rw-r--r--PKGBUILD7
3 files changed, 18 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e9f1a4460ad..92878d10e41 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gtk3-nocsd-git
pkgdesc = A hack to disable gtk+ 3 client side decoration
pkgver = r55.82ff5a0
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/PCMan/gtk3-nocsd
install = gtk3-nocsd-git.install
arch = i686
@@ -10,11 +10,12 @@ pkgbase = gtk3-nocsd-git
makedepends = git
makedepends = gobject-introspection
depends = gtk3
+ provides = gtk3-nocsd
conflicts = gtk3-nocsd
source = git+https://github.com/PCMan/gtk3-nocsd.git
source = 30-gtk3-nocsd.sh
sha512sums = SKIP
- sha512sums = 734e9ecd74fa677e185af9f91ac0abbc99bc55c1405aaaff219e24a5ceba7e6bff658ff428bde3dcb41a5c8a17b4cc8fb68abfed79306404941290ee1324c170
+ sha512sums = ef7a812887072a19b7b365fd393d808806d1bdb4beb2aa4e46af9cb690dc2a7abc8976a8e5875d91742f3029330ac9229feb6d50141e0c2d35f0d3d8a7400830
pkgname = gtk3-nocsd-git
diff --git a/30-gtk3-nocsd.sh b/30-gtk3-nocsd.sh
index 6e2c9de87fc..086823a86e8 100755
--- a/30-gtk3-nocsd.sh
+++ b/30-gtk3-nocsd.sh
@@ -1,26 +1,21 @@
#!/bin/bash
-if [ -n "${GNOME_DESKTOP_SESSION_ID-}" ] ; then
- # just in case DESKTOP_SESSION wasn't properly set
- _check=gnome
+if [ -n "${GNOME_DESKTOP_SESSION_ID-}" ]; then
+ # just in case DESKTOP_SESSION wasn't properly set
+ _check=gnome
else
- _check="${DESKTOP_SESSION-}"
+ _check="${DESKTOP_SESSION-}"
fi
case "${_check}" in
- gnome|gnome-*|*/gnome|*/gnome-*)
- if [ x"$GTK_CSD" = x"0" ] ; then
- unset GTK_CSD
- fi
+
+ gnome|gnome-*|*/gnome|*/gnome-*)
+ unset GTK_CSD
;;
- *)
- if [ -z "$GTK_CSD" ] ; then
- GTK_CSD=0
- fi
- export GTK_CSD
- if [ x"$GTK_CSD"x = x"0"x ] ; then
- export LD_PRELOAD="/usr/\${LIB}/libgtk3-nocsd.so.0${LD_PRELOAD:+:$LD_PRELOAD}"
- fi
+
+ *)
+ export GTK_CSD=0
+ export LD_PRELOAD="/usr/\${LIB}/libgtk3-nocsd.so.0${LD_PRELOAD:+:$LD_PRELOAD}"
;;
esac
diff --git a/PKGBUILD b/PKGBUILD
index 48a26569cb9..41da276f684 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,14 +4,15 @@
pkgname=gtk3-nocsd-git
pkgver=r55.82ff5a0
-pkgrel=4
+pkgrel=5
pkgdesc="A hack to disable gtk+ 3 client side decoration"
arch=("i686" "x86_64")
url="https://github.com/PCMan/gtk3-nocsd"
license=("LGPL")
-depends=("gtk3")
conflicts=("gtk3-nocsd")
+provides=("gtk3-nocsd")
+depends=("gtk3")
makedepends=(
"git"
@@ -25,7 +26,7 @@ source=(
sha512sums=(
"SKIP"
- "734e9ecd74fa677e185af9f91ac0abbc99bc55c1405aaaff219e24a5ceba7e6bff658ff428bde3dcb41a5c8a17b4cc8fb68abfed79306404941290ee1324c170"
+ "ef7a812887072a19b7b365fd393d808806d1bdb4beb2aa4e46af9cb690dc2a7abc8976a8e5875d91742f3029330ac9229feb6d50141e0c2d35f0d3d8a7400830"
)
install="$pkgname.install"