blob: 4737e6d595366de46a0fc540ea82ae822ba665ce (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer: DeltaCopy <7x0bb03yq@mozmail.com>
# Description: Builds Lightly from https://github.com/Bali10050/Lightly
# basic info
pkgname="lightly-qt6"
pkgver=0.5.6 # change this to match the name of the release tag you want to build from
pkgrel=3
pkgdesc="Bali10050's fork of Lightly (A modern style for qt applications)"
url="https://github.com/Bali10050/lightly"
arch=('x86_64' 'aarch64')
license=("GPL-2.0-or-later")
pkgdir="$srcdir/fakeinstall_kf6"
build_dir="build_kf6"
makedepends=(
'cmake'
'extra-cmake-modules'
'git'
)
options=(!emptydirs !debug)
source=(
"${pkgname}.git::git+${url}.git#tag=v${pkgver//_/-}"
)
# use makepkg -g to generate the sha256sum for the release tag
sha256sums=(
'f027395b14c96acb4b79ecb6e3b16e7e1dbeb17737ee021318e86a0a548ff619' # 0.5.6 tag
#'a9edb01977d9baaf7fd030ff1c84a90219c7159dcd48ad654bd955552a5ca950' # 0.5.5 tag
#'d94128c6b8e25426a482f2fe83f21fd3c664d4d57fe0cec7ab2c42ecda001616' # 0.5.4 tag
#'c23cee3e707a35df4301d55a9de1f809c633618546e2fcd59175d4af0bcca79f' # 0.5.3 tag
# '7d3fc45304a2937a1565620a91453d20dca24dddeb180e702f039362b6d8ec6d'# 0.5.2 tag
#'86790e88ac2275cbf0bb398c143716f1f80014927861765c89b3e8dbea0387d7' # 0.5.1 tag
#'50c3fbd437501c6ef9acc9fbce66a6b1457c4f6e0ea255eea02a65170586e4b9' # 0.5.0 tag
)
# KF6/Qt6
depends_kf6=(
'kdecoration'
'qt6-declarative'
'kcoreaddons'
'kcmutils'
'kcolorscheme'
'kconfig'
'kguiaddons'
'kiconthemes'
'kwindowsystem'
)
depends=("${depends_kf6[@]}")
conflicts=(
lightly-kf6
lightly-qt
)
provides=("lightly-qt6")
pkgver() {
cd "$srcdir/$pkgname.git"
git describe --tags --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/$pkgname.git"
}
build() (
local cmake_options=(
-B $build_dir
-S "$pkgname.git"
-DBUILD_TESTING=OFF
-Wno-dev
)
cmake "${cmake_options[@]}"
# for build optimization: use all cores -1 to not overload system
printf "Using $(($(nproc) - 1)) cores\n"
cmake --build $build_dir -j $(($(nproc) - 1))
)
package() (
install -dm755 "$pkgdir.git"
DESTDIR="$pkgdir" cmake --install $build_dir
rm -rf "$pkgdir/usr/lib/cmake"
)
|