summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ac21e63e4af58dcd420c7801c8c68df05e1f45f (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
# Maintainer:  Birk Birkner <aur at bbirkner.de>

pkgname=qrca-git
pkgver=0.1.r351.c48d5c2
pkgrel=1
pkgdesc="Scan QR-Codes with your camera on phones and laptops, and create your own for easily sharing data between devices."
arch=('x86_64' 'aarch64')
url="https://apps.kde.org/de/qrca/"
license=('GPL3')
#_KF_Version=5.240.0
depends=(
    "qt6-declarative"
    "hicolor-icon-theme"
    "gcc-libs"
    "xdg-utils"
    "prison"
    "kcontacts"
    "knotifications"
    "kcoreaddons"
    "ki18n"
    "kio"
    "kservice"
    "qt6-base"
    "kirigami"
)
makedepends=(
    "git"
    "cmake"
    "extra-cmake-modules"
    "qt6-svg"
    "qt6-quickcontrols2"
    "qt6-multimedia"
    "purpose"
    "python"
    "kguiaddons"
)
provides=('qrca')
conflicts=('qrca')
source=($pkgname::"git+https://invent.kde.org/utilities/qrca.git")
md5sums=('SKIP')

pkgver () {
    cd "$srcdir/$pkgname"
    printf "%s.r%s.%s" "$(awk '{if ($1 ~ "qrca") {print substr($3, 1, length($3)-1)}}' CMakeLists.txt)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build () {
    cmake -B build -S "$pkgname" \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev
    cmake --build build
}

package () {
    DESTDIR="$pkgdir" cmake --install build
}