#Packager: George Vlahavas pkgname=gtk3-nocsd pkgver=20220623 pkgrel=2gv source=("gtk3-nocsd-$pkgver.tar.xz" "gtk3_only.patch") docs=("readme.md" "install" "copying" "changelog" "authors" "news" "todo") url=https://github.com/ZaWertun/gtk3-nocsd url=https://github.com/fredldotme/gtk3-nocsd # newer fork options=('nosrcpack' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gtk3-nocsd (disable client side decoration of Gtk+ 3)" "gtk3-nocsd is a small module used to disable the client side" "decoration of Gtk+ 3. Since Gtk+ 3.10, its developers added a" "so-called header bar or custom title bar. With this and the" "client-side decoration, the original title bar and window border" "provided by the window manager are disabled by Gtk+. With gtk3-nocsd," "the title bar and window border the window manager provides are" "re-enabled." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/gtk3_only.patch || exit 1 export prefix=/usr export libdir=/usr/lib${LIBDIRSUFFIX} make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/etc/profile.d echo "#!/bin/sh" >> $startdir/pkg/etc/profile.d/gtk3-nocsd.sh echo "# disable client-side decorations in GTK+3" >> $startdir/pkg/etc/profile.d/gtk3-nocsd.sh echo "export GTK_CSD=0" >> $startdir/pkg/etc/profile.d/gtk3-nocsd.sh echo -n "export LD_PRELOAD=/usr/lib${LIBDIRSUFFIX}/libgtk3-nocsd.so.0" >> $startdir/pkg/etc/profile.d/gtk3-nocsd.sh echo '${LD_PRELOAD:+:$LD_PRELOAD}' >> $startdir/pkg/etc/profile.d/gtk3-nocsd.sh chmod 755 $startdir/pkg/etc/profile.d/gtk3-nocsd.sh }