summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31b5978bef6bc3592ea1cab3e4f72a6281228813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
 
# Maintainer: Jan Neumann <neum DOT ja AT gmail DOT com>

pkgname=breezemite-yakuake-git
pkgver=0.1
pkgrel=3
pkgdesc="Yakuake recompiled with Brezemite themes"
arch=('x86_64')
url="https://github.com/matijaskala/breezemite-yakuake"
license=('GPL2')
depends=('konsole' 'knewstuff' 'kwayland' 'hicolor-icon-theme')
conflicts=('yakuake' 'yakuake-git')
makedepends=('git' 'cmake' 'extra-cmake-modules' 'ruby' 'subversion')
source=("git+${url}.git"
        "git+git://anongit.kde.org/yakuake.git")
sha256sums=('SKIP'
            'SKIP')
             



prepare() {
   cd ${srcdir}/yakuake
   sed -i 's/\(Button->move(\)\(width() - \)\(m_skin->titleBar.*ButtonPosition().x()\)\(, m_skin->titleBar\)/\1(\3 <= 0) ? (- \3) : (\2\3)\4/' app/titlebar.cpp       

}

build() {
  cd ${srcdir}/yakuake
  mkdir -p build && cd build
   
  cmake .. \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_TESTING=OFF \
    -DKDE_L10N_BRANCH=trunk \
    -DKDE_L10N_AUTO_TRANSLATIONS=OFF \
    
   make fetch-translations
   make
  

}

package() {
make -C ${srcdir}/yakuake/build DESTDIR="${pkgdir}" install
mkdir -p  ${pkgdir}/usr/share/yakuake/skins/{breezemite,breezemite_dark,breezemite_dark_rhs}
cp -r ${srcdir}/breezemite-yakuake/{breezemite,breezemite_dark,breezemite_dark_rhs} ${pkgdir}/usr/share/yakuake/skins/

}