summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd3f4d071e7b852be4e19cafa121264be70f88a1 (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
# Maintainer: Andreas Schulz <andi.schulz@me.com>

pkgname=qtcreator-plugin-onedark-git
pkgver=r32.bfca810
pkgrel=1
pkgdesc="OneDark style additions for Qt Creator."
arch=('x86_64')
url="https://github.com/Longhanks/qtcreator-plugin-onedark"
license=('MIT')
depends=('qtcreator')
makedepends=('git' 'qtcreator-src')
source=("$pkgname"::git+https://github.com/Longhanks/qtcreator-plugin-onedark.git)
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    mkdir -p build
}

build() {
    cd build

    cmake "$srcdir/$pkgname" \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DQTCREATOR_SRC="/usr/src/qtcreator" \
        -DQTCREATOR_BIN="/usr/bin/qtcreator"
        
    make
}

package() {
    cd build

    make DESTDIR="$pkgdir/" install

    install -D -m644 "$srcdir"/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}