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

pkgname=qrca-git
pkgver=0.1.r242.370414c
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')
url="https://apps.kde.org/de/qrca/"
license=('GPL3')
depends=(
    'qt5-declarative'
    'hicolor-icon-theme'
    'gcc-libs'
    'xdg-utils'
    'prison'
    'kcontacts'
    'knotifications'
    'kcoreaddons'
    'ki18n'
    'kio'
    'kservice'
    'qt5-base'
)
makedepends=(git cmake extra-cmake-modules qt5-svg qt5-quickcontrols2 qt5-multimedia kirigami2 purpose)
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
}