diff --git a/git-etc/PKGBUILD b/git-etc/PKGBUILD index 42c9549..e846e7f 100644 --- a/git-etc/PKGBUILD +++ b/git-etc/PKGBUILD @@ -12,7 +12,7 @@ depends=('bash' 'git') optdepends=('python2-pyqt4: for GUI' 'xterm: for GUI') source=(https://github.com/arcan1s/git-etc/releases/download/V.${pkgver}/${pkgname}-${pkgver}.tar.xz) -md5sums=('502081640d842ca9a2c8ec77a99b7349') +md5sums=('32374e9285bc0cc330a4aea6932bbeb4') backup=('etc/conf.d/git-etc.conf') package() diff --git a/oxygen-transparent-macos/PKGBUILD b/oxygen-transparent-macos/PKGBUILD new file mode 100644 index 0000000..cb0a42e --- /dev/null +++ b/oxygen-transparent-macos/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Alessio Sergi + +pkgname=oxygen-transparent-macos +_pkgname=oxygen-transparent +pkgver=246.f2f067d +pkgrel=1 +pkgdesc="Oxygen style and decoration with support for transparency" +arch=('i686' 'x86_64') +url="https://projects.kde.org/projects/playground/artwork/oxygen-transparent" +license=('GPL' 'LGPL') +depends=('kdebase-workspace') +makedepends=('cmake' 'git' 'automoc4') +provides=(${_pkgname}) +conflicts=(${_pkgname}) +source=(git+git://anongit.kde.org/oxygen-transparent + oxytrans-macos.patch) +md5sums=('SKIP' + '543a9d78e4fca3eda262016a37040632') + +pkgver() { +cd "${_pkgname}" +echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} + +prepare() { + cd ${srcdir} + patch -p0 < oxytrans-macos.patch +} + +build() { + cd "${srcdir}/${_pkgname}" + cmake -DCMAKE_BUILD_TYPE=RELEASE \ + -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` + make +} + +package() { + cd "${srcdir}/${_pkgname}" + make DESTDIR="${pkgdir}" install +} + +# vim:set ts=2 sw=2 et: diff --git a/oxygen-transparent-macos/oxytrans-macos.patch b/oxygen-transparent-macos/oxytrans-macos.patch new file mode 100644 index 0000000..cc8c7af --- /dev/null +++ b/oxygen-transparent-macos/oxytrans-macos.patch @@ -0,0 +1,4301 @@ +diff -ruN oxygen-transparent.orig/decoration/CMakeLists.txt oxygen-transparent/decoration/CMakeLists.txt +--- oxygen-transparent.orig/decoration/CMakeLists.txt 2013-09-23 19:15:41.000000000 +0400 ++++ oxygen-transparent/decoration/CMakeLists.txt 2013-09-23 19:16:36.395191237 +0400 +@@ -30,4 +30,5 @@ + + ########### install files ############### + install( FILES oxygentransparentclient.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin/ ) ++install( FILES close.svg maximize.svg minimize.svg DESTINATION ${DATA_INSTALL_DIR}/desktoptheme/oxygen/oxytrans/ ) + +diff -ruN oxygen-transparent.orig/decoration/close.svg oxygen-transparent/decoration/close.svg +--- oxygen-transparent.orig/decoration/close.svg 1970-01-01 03:00:00.000000000 +0300 ++++ oxygen-transparent/decoration/close.svg 2013-09-23 15:21:27.000000000 +0400 +@@ -0,0 +1,1148 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ image/svg+xml ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff -ruN oxygen-transparent.orig/decoration/maximize.svg oxygen-transparent/decoration/maximize.svg +--- oxygen-transparent.orig/decoration/maximize.svg 1970-01-01 03:00:00.000000000 +0300 ++++ oxygen-transparent/decoration/maximize.svg 2013-09-23 11:57:07.000000000 +0400 +@@ -0,0 +1,1593 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ image/svg+xml ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff -ruN oxygen-transparent.orig/decoration/minimize.svg oxygen-transparent/decoration/minimize.svg +--- oxygen-transparent.orig/decoration/minimize.svg 1970-01-01 03:00:00.000000000 +0300 ++++ oxygen-transparent/decoration/minimize.svg 2013-09-23 11:57:38.000000000 +0400 +@@ -0,0 +1,1475 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ image/svg+xml ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff -ruN oxygen-transparent.orig/decoration/oxygenbutton.cpp oxygen-transparent/decoration/oxygenbutton.cpp +--- oxygen-transparent.orig/decoration/oxygenbutton.cpp 2013-09-23 19:15:41.000000000 +0400 ++++ oxygen-transparent/decoration/oxygenbutton.cpp 2013-09-23 19:16:27.325191477 +0400 +@@ -31,8 +31,10 @@ + + #include + ++#include + #include + #include ++#include + + #include + #include +@@ -336,6 +338,7 @@ + + painter->save(); + painter->setWindow( 0, 0, 22, 22 ); ++ QSvgRenderer but_icon; + + switch(_type) + { +@@ -359,35 +362,19 @@ + break; + + case ButtonMin: +- painter->drawLine(QPointF( 7.5, 9.5), QPointF(10.5,12.5)); +- painter->drawLine(QPointF(10.5,12.5), QPointF(13.5, 9.5)); ++ but_icon.load(QString("/usr/share/apps/desktoptheme/oxygen/oxytrans/minimize.svg")); ++ but_icon.render(painter, QRectF(2.0,1.7,16.5,16.5)); + break; + + case ButtonMax: +- switch(_client.maximizeMode()) +- { +- case Client::MaximizeRestore: +- case Client::MaximizeVertical: +- case Client::MaximizeHorizontal: +- painter->drawLine(QPointF( 7.5,11.5), QPointF(10.5, 8.5)); +- painter->drawLine(QPointF(10.5, 8.5), QPointF(13.5,11.5)); +- break; +- +- case Client::MaximizeFull: +- { +- painter->translate(1.5, 1.5); +- QPoint points[4] = {QPoint(9, 6), QPoint(12, 9), QPoint(9, 12), QPoint(6, 9)}; +- painter->drawPolygon(points, 4); +- painter->translate(-1.5, -1.5); +- break; +- } +- } ++ but_icon.load(QString("/usr/share/apps/desktoptheme/oxygen/oxytrans/maximize.svg")); ++ but_icon.render(painter, QRectF(2.0,1.7,16.5,16.5)); + break; + + case ButtonItemClose: + case ButtonClose: +- painter->drawLine(QPointF( 7.5,7.5), QPointF(13.5,13.5)); +- painter->drawLine(QPointF(13.5,7.5), QPointF( 7.5,13.5)); ++ but_icon.load(QString("/usr/share/apps/desktoptheme/oxygen/oxytrans/close.svg")); ++ but_icon.render(painter, QRectF(2.0,1.7,16.5,16.5)); + break; + + case ButtonAbove: