summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35e09870f22722891351784ded5981e29755cbd3 (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
45
46
47
48
 # Maintainer: Dandraghas <dandraghas at proton dot me>

pkgname=lightly-qt6-git
pkgver=0.4.1.r73.g00ca2344
pkgrel=3
_branch=qt6
pkgdesc="A modern style for qt applications. (qt6 branch)"
url="https://github.com/boehs/Lightly"
license=('GPL-2.0')
depends=('kdecoration')
makedepends=('cmake' 'qt6-declarative' 'extra-cmake-modules' 'git')
arch=('x86_64')

source=("git+${url}.git#branch=${_branch}"
        "add-missing-files.patch")
sha256sums=('SKIP'
            '2553ff71310e265a9481c0afb9d50bbd1d9f66d47bd67675956199601c1a6501')

pkgver() {
  cd Lightly
  git describe --tags --long | sed 's/v//;s/-/.r/;s/-/./g'
}

prepare() {
  cd Lightly

  git apply ../add-missing-files.patch
}

build() {
  local _cmake_options=(
    -B build
    -S "Lightly"
    -DCMAKE_INSTALL_PREFIX=/usr
    -DCMAKE_BUILD_TYPE=Release
    -DBUILD_TESTING=OFF
  )

  cmake "${_cmake_options[@]}"

  make -C build/kdecoration/config/

  cmake --build build
}

package() {
    DESTDIR="${pkgdir}" cmake --install build
}