diff options
Diffstat (limited to 'desktop/adwaita-qt')
-rw-r--r-- | desktop/adwaita-qt/README | 6 | ||||
-rw-r--r-- | desktop/adwaita-qt/adwaita-qt.SlackBuild | 101 | ||||
-rw-r--r-- | desktop/adwaita-qt/adwaita-qt.info | 10 | ||||
-rw-r--r-- | desktop/adwaita-qt/isnan_compile_fix.patch | 21 | ||||
-rw-r--r-- | desktop/adwaita-qt/slack-desc | 19 |
5 files changed, 157 insertions, 0 deletions
diff --git a/desktop/adwaita-qt/README b/desktop/adwaita-qt/README new file mode 100644 index 0000000000..266b332fea --- /dev/null +++ b/desktop/adwaita-qt/README @@ -0,0 +1,6 @@ +adwaita-qt (KDE/QT Theme) + +A Qt style to make Qt applications look like they belong in GNOME +Shell. This is useful for achieveing a uniform look btween QT +and GTK-2.0/3.0 apps. Adwaita is the default GTK 2.0 and 3.0 +theme in Slackware, this package only installs the QT4 theme. diff --git a/desktop/adwaita-qt/adwaita-qt.SlackBuild b/desktop/adwaita-qt/adwaita-qt.SlackBuild new file mode 100644 index 0000000000..eb5ee600c4 --- /dev/null +++ b/desktop/adwaita-qt/adwaita-qt.SlackBuild @@ -0,0 +1,101 @@ +#!/bin/sh + +# Slackware build script for adwaita-qt + +# Copyright 2017 Matt Dinslage (daedra1980@gmail.com), Springfield, MO, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=adwaita-qt +VERSION=${VERSION:-0.97} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +rm -rf $TMP/$PRGNAM-$VERSION +cd $TMP +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +#Use std::isnan instead of isnan compile fix +#https://github.com/MartinBriza/adwaita-qt/issues/53 +patch -p1 < $CWD/isnan_compile_fix.patch + +mkdir build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DUSE_QT4=ON \ + -DQT_ROOT=/usr/lib${LIBDIRSUFFIX}/kde4 \ + -DCMAKE_BUILD_TYPE=Release .. + + make + make install DESTDIR=$PKG +cd .. + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING LICENSE.GPL2 README.md $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/desktop/adwaita-qt/adwaita-qt.info b/desktop/adwaita-qt/adwaita-qt.info new file mode 100644 index 0000000000..0af6cc3052 --- /dev/null +++ b/desktop/adwaita-qt/adwaita-qt.info @@ -0,0 +1,10 @@ +PRGNAM="adwaita-qt" +VERSION="0.97" +HOMEPAGE="https://github.com/MartinBriza/adwaita-qt" +DOWNLOAD="https://github.com/MartinBriza/adwaita-qt/archive/0.97/adwaita-qt-0.97.tar.gz" +MD5SUM="c5a38c1f6d66910c453b3eacc05cc3f3" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="M.Dinslage" +EMAIL="daedra1980@gmail.com" diff --git a/desktop/adwaita-qt/isnan_compile_fix.patch b/desktop/adwaita-qt/isnan_compile_fix.patch new file mode 100644 index 0000000000..1e862372c6 --- /dev/null +++ b/desktop/adwaita-qt/isnan_compile_fix.patch @@ -0,0 +1,21 @@ +diff -up adwaita-qt-0.97/style/adwaitahelper.h.orig adwaita-qt-0.97/style/adwaitahelper.h +--- adwaita-qt-0.97/style/adwaitahelper.h.orig 2017-02-04 20:20:45.831715084 -0600 ++++ adwaita-qt-0.97/style/adwaitahelper.h 2017-02-04 20:21:30.195712810 -0600 +@@ -33,7 +33,7 @@ + #include <xcb/xcb.h> + #endif + +-#include <math.h> ++#include <cmath> + + namespace Adwaita + { +@@ -69,7 +69,7 @@ namespace Adwaita + + if (bias <= 0.0) return c1; + if (bias >= 1.0) return c2; +- if (isnan(bias)) return c1; ++ if (std::isnan(bias)) return c1; + + qreal r = mixQreal(c1.redF(), c2.redF(), bias); + qreal g = mixQreal(c1.greenF(), c2.greenF(), bias); diff --git a/desktop/adwaita-qt/slack-desc b/desktop/adwaita-qt/slack-desc new file mode 100644 index 0000000000..7e5ce8a064 --- /dev/null +++ b/desktop/adwaita-qt/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +adwaita-qt: adwaita-qt (KDE/QT Theme) +adwaita-qt: +adwaita-qt: A QT style to make Qt applications look like they belong in GNOME +adwaita-qt: Shell. +adwaita-qt: +adwaita-qt: +adwaita-qt: +adwaita-qt: +adwaita-qt: +adwaita-qt: +adwaita-qt: |