summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab740c472104968bd2d6cfd50b96399dc556d2b0 (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: Jah Way <jahway603 at protonmail dot com>
# Previous Maintainer: mel <mel@nie.rs>
# Contributor Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Antonio Rojas

pkgname=prison-git
_name=${pkgname%-git}
pkgver=v6.7.0.r2.g4cbf603
pkgrel=1
pkgdesc="Barcode api currently offering a nice Qt api to produce QRCode barcodes and DataMatrix barcodes. (GIT version)"
arch=(x86_64)
url='https://invent.kde.org/frameworks/prison'
license=(LGPL)
depends=(libdmtx qrencode qt6-declarative qt6-multimedia zxing-cpp)
makedepends=(extra-cmake-modules git)
conflicts=(prison)
provides=(prison)
source=("git+https://invent.kde.org/frameworks/$_name.git")
md5sums=('SKIP')

pkgver() {
  cd $_name
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -B build -S $_name
  cmake --build build
}

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