blob: 296c9dc9d14f8e82cd876923c33febcc02d508ab (
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
|
# Maintainer: Dan Johansen <strit@strits.dk>
## Build order:
## dfl-login1 -> dfl-wayqt -> dfl-gamma-effects - dfl-login1 - dfl-power
_pkgname=power
pkgbase=dfl-power
pkgname=('dfl-power' 'dfl-power-qt6')
pkgver=0.2.1
pkgrel=2
pkgdesc="A class to handle various display effects that can be performed using wlr-gamma-control protocol"
arch=('x86_64' 'aarch64')
url="https://gitlab.com/desktop-frameworks/$_pkgname"
license=('GPL3')
depends=('upower')
makedepends=('meson' 'ninja' 'qt5-base' 'qt6-base' 'dfl-wayqt' 'dfl-wayqt-qt6' 'dfl-gamma-effects' 'dfl-gamma-effects-qt6' 'dfl-login1' 'dfl-login1-qt6')
source=("$url/-/archive/v${pkgver}/${_pkgname}-v${pkgver}.tar.gz")
md5sums=('da6ce6ee811148eb26ed4d02377e78ca')
build() {
cd "${_pkgname}-v${pkgver}"
echo "Building QT5 version..."
meson .build --prefix=/usr --buildtype=release
ninja -C .build
echo "Building QT6 version..."
meson .build-qt6 --prefix=/usr -Duse_qt_version=qt6 --buildtype=release
ninja -C .build-qt6
}
package_dfl-power() {
depends+=('qt5-base' 'dfl-color-utils' 'dfl-wayqt' 'dfl-gamma-effects' 'dfl-login1')
cd "${_pkgname}-v${pkgver}"
DESTDIR="${pkgdir}" ninja -C .build install
}
package_dfl-power-qt6() {
depends+=('qt6-base' 'dfl-color-utils-qt6' 'dfl-wayqt-qt6' 'dfl-gamma-effects-qt6' 'dfl-login1-qt6')
cd "${_pkgname}-v${pkgver}"
DESTDIR="${pkgdir}" ninja -C .build-qt6 install
}
|