summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f820f66abf2602c50de987f29df10b342977e68 (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
# Maintainer: Christoph Sterz <christoph.sterz@kdab.com>
pkgname=kddockwidgets-git
pkgver=1.6.0.r79.gac6ed8e9
pkgrel=1
arch=('x86_64')
pkgdesc="KDAB's Dock Widget Framework for Qt"
license=("GPL2" "custom:KDAB commercial license")
depends=(qt5-{base,x11extras})
makedepends=('cmake' 'git' 'ninja' 'qt5-tools')
provides=('kddockwidgets')
conflicts=('kddockwidgets')
url="https://www.kdab.com/kddockwidgets/"
source=("${pkgname}::git+https://github.com/KDAB/KDDockWidgets.git")
sha256sums=('SKIP')

pkgver() {
    git -C "$srcdir/$pkgname" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    mkdir -p build
}

build() {
    cd build
    cmake \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -G Ninja \
        "../${pkgname}"
    ninja
}

package() {
    cd build
    DESTDIR="${pkgdir}" ninja install
}