summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fafa41a926d1b655cfeb6a27df29b7b888949ef7 (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
# Maintainer: zaps166 <spaz16 at wp dot pl>

pkgname=qdre-compositor-git
pkgver=0.0.0.r74.g0fa5c11
pkgrel=1
pkgdesc='Lightweight X11 compositor with dconf settings'
arch=('x86_64')
url='https://gitlab.com/zaps166/qdre'
license=('MIT')
groups=('qdre')
depends=('qt6-base' 'glib2' 'libxcb')
makedepends=('cmake' 'git')
conflicts=('qdre-git')
source=("git+https://gitlab.com/zaps166/qdre.git#branch=master")
sha1sums=('SKIP')

prepare() {
    mkdir -p build
}

pkgver() {
    cd qdre
    echo -n "0.0.0.r$(git rev-list --all --count).g$(git rev-parse --short HEAD)"
}

build() {
    cd build
    cmake ../qdre \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_BUILD_TYPE=Release \
        -DAPPS_QDRE_Viewer=OFF
    make
}

package() {
    cd build
    make DESTDIR="${pkgdir}" install
    rm -r "${pkgdir}/usr/include"
    rm -r "${pkgdir}/usr/lib"
}