blob: 411e2f53e60ae7d5ba30daf46fd9869fe9ff5fa0 (
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: Luigi311 <aur@luigi311.com>
pkgname=harbour-shutter-git
pkgver=r148.84220ca
pkgrel=1
pkgdesc='A camera application designed for Sailfish which exposes all available camera parameters to the user.'
arch=('x86_64' 'aarch64')
url="https://github.com/piggz/harbour-shutter"
branch="main"
license=('GPLv2+')
depends=('qt6-multimedia' 'qt6-sensors' 'kcoreaddons' 'libexif' 'libcamera' 'kirigami' 'opencv')
makedepends=('git' 'qt6-base' 'qt6-shadertools' 'vtk' 'hdf5' 'glew' 'abseil-cpp' 'fmt' 'cmake' 'extra-cmake-modules')
checkdepends=()
optdepends=()
provides=('harbour-shutter')
conflicts=('harbour-shutter')
replaces=('harbour-shutter')
source=(
"${pkgname}::git+${url}.git#branch=${branch}"
)
md5sums=(
'SKIP'
)
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${pkgname}"
# Make sure Qt6::GuiPrivate exists by requesting the GuiPrivate component
# Insert "GuiPrivate" right after "ShaderTools" in the Qt6 COMPONENTS list
sed -i '/ShaderTools/a\ GuiPrivate' CMakeLists.txt
}
build() {
cd "${srcdir}/${pkgname}"
local _cmake_options=(
-B build
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX='/usr'
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
cd "${srcdir}/${pkgname}"
DESTDIR="$pkgdir" cmake --install build
}
|