blob: d1fdd0a27b280e78115335ea2667b76e29674063 (
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
|
# Maintainer: alba4k <blaskoazzolaaaron@gmail.com>
_pkgname="hyprland-qt-support"
pkgname="${_pkgname}-git"
pkgver=0.1.0.r2.g0ecf224f
pkgrel=1
pkgdesc="A qml style provider for hypr* qt apps"
arch=(x86_64 aarch64)
url="https://github.com/hyprwm/hyprland-qt-support"
license=('BSD-3-Clause')
depends=('qt6-wayland>=6.6.0' 'hyprlang-git>=0.6.0')
makedepends=('git' 'cmake' 'gcc' 'pkgconf')
source=("${_pkgname}::git+https://github.com/hyprwm/hyprland-qt-support.git")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
sha256sums=('SKIP')
pick_mr() {
cd ${srcdir}/${_pkgname}
git pull origin pull/$1/head --no-edit
}
prepare() {
# Pick pull request form github using `pick_mr <pull request numebr>`.
# e.g. `pick_mr 100`
echo -n
}
pkgver() {
cd ${srcdir}/${_pkgname}
git describe --long --tags --abbrev=8 --exclude='*[a-zA-Z][a-zA-Z]*' \
| sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
cmake --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINSTALL_QML_PREFIX=/lib/qt6/qml -DCMAKE_INSTALL_LIBDIR=/usr/lib -S . -B ./build
cmake --build ./build --config Release --target all
}
package() {
cd "${srcdir}/${_pkgname}"
DESTDIR="${pkgdir}" cmake --install build
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|