summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31cbe1ee3eb451ed6e8eae6e19fd906fef0b79aa (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.5
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=('6560529cc6a6c0f0a0799dd4388dabf5a16819c49ec0ad6bf33ed5f20ac1a2df'
            '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