summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11496ad92245d382f7cef0e1809106ac75389dc7 (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
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Gustavo Castro < gustawho [ at ] gmail [ dot ] com >

pkgname=mauikit-imagetools-git
pkgver=4.0.0.r3.g9f35795
pkgrel=1
pkgdesc="MauiKit Image Tools Components"
arch=(x86_64 i686 armv7h aarch64)
url="https://invent.kde.org/maui/mauikit-imagetools"
license=(GPL3)
depends=(mauikit-git exiv2 tesseract leptonica kquickimageeditor kcoreaddons)
makedepends=(git extra-cmake-modules opencv)
provides=(mauikit-imagetools)
conflicts=(mauikit-imagetools)
source=("git+https://invent.kde.org/maui/mauikit-imagetools.git")
sha256sums=('SKIP')

pkgver() {
  cd "mauikit-imagetools"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -B build -S "mauikit-imagetools" -Wno-dev \
    -DCMAKE_BUILD_TYPE=None \
    -DCMAKE_INSTALL_PREFIX=/usr

  cmake --build build
}

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