Browse code

First commit

Qurban Ullah authored on 27/02/2018 18:10:55
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,64 @@
1
+# $Id$
2
+# Maintainer: Qurban Ullah <qurbanullah@avouch.org>
3
+# Contributor: Qurban Ullah <qurbanullah@avouch.org>
4
+
5
+pkgbase=breeze
6
+pkgname=(breeze breeze-kde4)
7
+pkgver=5.12.0
8
+pkgrel=1
9
+arch=(i686 x86_64)
10
+url='https://www.kde.org/workspaces/plasmadesktop/'
11
+license=(LGPL)
12
+makedepends=(extra-cmake-modules frameworkintegration kdelibs automoc4 kdecoration kcmutils plasma-framework python)
13
+source=("https://download.kde.org/stable/plasma/$pkgver/$pkgbase-$pkgver.tar.xz"{,.sig})
14
+sha256sums=('970a0e9a50dfb49252cbf341e6fe3ee88c5e6870a490edd667d5e208e4c90b7b'
15
+            'SKIP')
16
+validpgpkeys=('2D1D5B0588357787DE9EE225EC94D18F7F05997E'  # Jonathan Riddell
17
+              '348C8651206633FD983A8FC4DEACEA00075E1D76'  # KDE Neon
18
+              'D07BD8662C56CB291B316EB2F5675605C74E02CF') # David Edmundson
19
+
20
+prepare() {
21
+  mkdir -p build{,-kde4}
22
+}
23
+
24
+build() {
25
+  cd build
26
+  cmake ../$pkgbase-$pkgver \
27
+    -DCMAKE_BUILD_TYPE=Release \
28
+    -DCMAKE_INSTALL_PREFIX=/usr \
29
+    -DCMAKE_INSTALL_LIBDIR=lib \
30
+    -DBUILD_TESTING=OFF
31
+  make ${MAKEFLAGS}
32
+
33
+  cd ../build-kde4
34
+  cmake ../$pkgbase-$pkgver \
35
+    -DCMAKE_BUILD_TYPE=Release \
36
+    -DCMAKE_INSTALL_PREFIX=/usr \
37
+    -DUSE_KDE4=ON \
38
+    -DBUILD_TESTING=OFF
39
+  make ${MAKEFLAGS}
40
+}
41
+
42
+package_breeze() {
43
+  depends=(frameworkintegration kdecoration breeze-icons kwayland hicolor-icon-theme)
44
+  pkgdesc='Artwork, styles and assets for the Breeze visual style for the Plasma Desktop'
45
+  optdepends=('breeze-kde4: Breeze widget style for KDE4 applications'
46
+		'breeze-gtk: Breeze widget style for GTK applications'
47
+		'kcmutils: for breeze-settings')
48
+  groups=(plasma)
49
+
50
+  cd build
51
+  make DESTDIR="$pkgdir" install
52
+}
53
+
54
+package_breeze-kde4() {
55
+  pkgdesc='Breeze widget style for KDE4 applications'
56
+  depends=(kdelibs)
57
+
58
+  cd build-kde4
59
+  make DESTDIR="$pkgdir" install
60
+
61
+  # needed for pure Qt4 apps
62
+  install -d "$pkgdir"/usr/lib/qt4/plugins/styles
63
+  ln -s /usr/lib/kde4/plugins/styles/breeze.so "$pkgdir"/usr/lib/qt4/plugins/styles
64
+}