From 3a2901b49c1ccb82da3a35f3696cfe4546408028 Mon Sep 17 00:00:00 2001 From: leca Date: Mon, 9 Dec 2024 19:06:49 +0300 Subject: [PATCH] added PKGBUILD --- deploy/archlinux/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 deploy/archlinux/PKGBUILD diff --git a/deploy/archlinux/PKGBUILD b/deploy/archlinux/PKGBUILD new file mode 100644 index 0000000..84f8cc1 --- /dev/null +++ b/deploy/archlinux/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Leca +pkgname=checks-parser-git +pkgver=alpha_0.0.2 +pkgrel=1 +epoch= +pkgdesc="Utility for parsing checks(receipts) to csv" +arch=('x86_64') +url="https://git.foxarmy.org/leca/checks-parser" +license=('GPL-3.0-or-later') +groups=() +depends=('qt5-base' 'opencv' 'zbar' 'nlohmann-json' 'tesseract') +makedepends=('cmake' 'make' 'gcc' 'git' 'qt5-tools') +checkdepends=() +optdepends=('tesseract-data-rus: scan russian checks with OCR') +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("checks-parser-git::git+$url") +noextract=() +sha256sums=('SKIP') + +build() { + cd "$pkgname" + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . + make -j ${nproc} +} + +package() { + cd "$pkgname" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + make DESTDIR="$pkgdir/" PREFIX="/usr" install +}