summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c6ebd652d34658b301b93ee1c64577b45f6f0f4 (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
# Maintainer: VicSanRoPe <kde.sp90x@simplelogin.com>

pkgname=ksanecore-git
pkgver=r736.3578c78
pkgrel=1
pkgdesc='Library that provides a Qt interface for the SANE library for scanner hardware (git version)'
url='https://invent.kde.org/libraries/ksanecore'
arch=(x86_64)
license=(LGPL)
depends=(ki18n5 sane)
makedepends=(git extra-cmake-modules)
provides=('ksanecore')
conflicts=('ksanecore')
source=('ksanecore::git+https://invent.kde.org/libraries/ksanecore.git')
md5sums=('SKIP')

pkgver() {
    cd "${pkgname%-git}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cmake -B build -S "${pkgname%-git}" -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
  cmake --build build
}

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