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

pkgname=qdre-git
pkgver=0.0.0
pkgrel=3
pkgdesc='Qt Desktop Regular Environment (early development)'
arch=('i686' 'x86_64' 'armv7h')
url='https://gitlab.com/zaps166/qdre'
license=('MIT')
groups=('qdre')
depends=('qt5-base' 'qt5-x11extras' 'glib2' 'gnome-menus' 'libgtop' 'exiv2' 'kcrash' 'kwindowsystem' 'qrencode' 'libxcb')
makedepends=('fakeroot' 'make' 'gcc' 'cmake' 'git')
optdepends=('drkonqi')
# options=(!strip debug)
source=("git+https://gitlab.com/zaps166/qdre.git#branch=master")
sha1sums=("SKIP")

prepare() {
    mkdir -p build
}

pkgver() {
    cd qdre
    git rev-parse --short HEAD
}

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

# check() {
#     cd build
#     ctest -V
# }

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