summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2fe03dc4a1f555b2974dbcc9494b55eec9483ed2 (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-tabs-git
pkgver=r29.6d750a0
pkgrel=1
pkgdesc="Tabs for Qt Creator."
arch=('x86_64')
url="https://github.com/Longhanks/qtcreator-plugin-tabs"
license=('MIT')
depends=('qtcreator' 'qtcreator-plugin-layoutsupport-git')
makedepends=('git' 'qtcreator-src')
source=("$pkgname"::git+https://github.com/Longhanks/qtcreator-plugin-tabs.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
}