summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f4f6fcaf209317d7364725d5ae2dcd65cda9815 (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
# Maintainer: Dimitrios Misdanitis <d.misdanitis@gmail.com>

pkgname=yakuake-sp-git
pkgver=v3.0.3.g778bd25.focusfix
pkgrel=1
pkgdesc="A drop-down terminal emulator based on KDE Konsole technology. (GIT version with wrong split focus patch)"
arch=('i686' 'x86_64')
url='https://www.kde.org/applications/system/yakuake'
license=('GPL')
depends=('knewstuff'
         'konsole'
         'kwayland'
         'hicolor-icon-theme'
         )
makedepends=('extra-cmake-modules'
             'git'
             'python'
             )
conflicts=('yakuake')
provides=('yakuake')
source=('git://anongit.kde.org/yakuake.git')
sha1sums=('SKIP')

pkgver() {
  cd yakuake
  echo "$(git describe --long --tags | tr - .).focusfix"
}

prepare() {
  cd ${srcdir}/yakuake
  patch -p1 <../../0001-focus-fix.patch
  cd ${srcdir}
  mkdir -p build
}

build() {
  cd build
  cmake ../yakuake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DKDE_INSTALL_LIBDIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
    -DBUILD_TESTING=OFF
  make
}

package() {
  make -C build DESTDIR="${pkgdir}" install
}