summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d86659a68f5530dd96d04015625df561aaa9726 (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
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>

pkgname=kookbook-git
pkgver=0.2.1.r0.g4fd813a
pkgrel=1
pkgdesc="Cookbook creator"
arch=(x86_64)
url="https://cgit.kde.org/kookbook.git/tree/doc/intro.md"
license=(MIT)
depends=(discount qt5-base qt5-declarative)
makedepends=(git cmake extra-cmake-modules)
provides=(kookbook)
conflicts=(kookbook)
source=("git+https://anongit.kde.org/kookbook.git")
sha512sums=('SKIP')

pkgver() {
    cd kookbook
    git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    mkdir -p build
}

build() {
    cd build
    cmake ../kookbook \
        -DCMAKE_INSTALL_PREFIX=/usr
    make
}

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