summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48631ef3b6db8924737aca338b7ce15dfe29f286 (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
# Maintainer: Daniel Mensinger <daniel@mensinger-ka.de>
_pkgname=qScan
pkgname=qscan
pkgver=1.0.4
pkgrel=1
pkgdesc="QT document scanner using SANE"
arch=('i686' 'x86_64' 'aarch64' 'armv7h')
url="https://github.com/mensinda/qScan"
license=('Apache')
groups=()
depends=(sane qt5-base imagemagick spdlog)
makedepends=(meson nlohmann-json)
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(
    https://github.com/mensinda/$_pkgname/archive/refs/tags/v${pkgver}.tar.gz
    https://github.com/mensinda/enumGen/archive/refs/tags/v1.1.2.tar.gz # Compile time code generator
)
noextract=()
sha256sums=('579e4ceef52df8393d2bcd2fd30f0eabab4076b71b8542d9192630b953f8819e'
            '987e608f52e651e1c90514893485331227f0064e887068124fac1a8cb96d7a8a')

prepare() {
    cp -R "enumGen-1.1.2" "$_pkgname-$pkgver/subprojects"
}

build() {
  cd "$_pkgname-$pkgver"

  arch-meson build -Dwerror=false
  meson compile -C build
}

package() {
  cd "$_pkgname-$pkgver"

  meson install -C build --destdir "$pkgdir"
}

# REMINDER: makepkg --printsrcinfo > .SRCINFO