summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd7a8f1e7a289d9b336e4acfd75fe597d7f5eab8 (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
# Maintainer: Entailz <entail-wraps0r at icloud dot com>

pkgname=quickshell
pkgver=r307.79b22af
pkgrel=1
pkgdesc='Simple and flexbile QtQuick based desktop shell toolkit.'
arch=(x86_64 aarch64)
url='https://github.com/outfoxxed/quickshell'
license=('GPL')
depends=(
	'qt6-declarative'
	'qt6-base'
	'jemalloc'
	'qt6-svg'
	'libpipewire'
	'qt6-wayland'
	'wayland-protocols'
	'libxcb'
	'wayland'
	'cli11'
	'google-breakpad'
)
makedepends=(
	'ninja'
	'cmake'
	'pkgconf'
)

source=(
	"git+https://github.com/outfoxxed/quickshell.git"
)
sha256sums=(
	'SKIP'
)

pkgver() {
	cd "$srcdir/quickshell"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${pkgname}"
	QTWAYLANDSCANNER="/usr/lib/qt6/qtwaylandscanner" cmake -GNinja -B build \
		-DCMAKE_BUILD_TYPE="RelWithDebInfo"

	cmake --build build
}

package() {
	cd "${pkgname}"
	DESTDIR=$pkgdir cmake --install build
	install -Dm0644 -t "{$pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}