summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43efc35750979701db41db85a93b425dbd78ddf2 (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
# Maintainer: soloturn@gmail.com
# Contributor: nblock <nblock [/at\] archlinux DOT us>

_basename=qrk
pkgname="$_basename-git"
pkgver=1.10.3
pkgrel=0
pkgdesc="A graphical cash register for small companies"
arch=('i686' 'x86_64')
url="https://www.ckvsoft.at"
license=('GPL')
depends=('crypto++' 'qrencode' 'pcsclite')
makedepends=('git' 'qt5-declarative')
conflicts=("$_basename")
provides=("$_basename")

source=("$pkgname::git://git.code.sf.net/p/qrk-registrier-kasse/code")
sha1sums=('SKIP')

build() {
  cd "${srcdir}/${pkgname}"
  _upper_basename=$(echo ${_basename} | tr '[:lower:]' '[:upper:]')
  qmake-qt5 "${_upper_basename}.pro"
  make
}

package() {
  cd "${srcdir}/${pkgname}"
  mkdir -p ${pkgdir}/usr/{bin,lib,share/applications}
  install -D -m755 "bin/$_basename" "$pkgdir"/usr/bin/$_basename
  cp qrkcore/libQrkCore.so* "$pkgdir"/usr/lib/
  install -D -m644 "src/icons/logo.png" "$pkgdir/usr/share/pixmaps/$_basename.png"
  # no idea who produces qrk.desktop
  # install -D -m644 "$srcdir/$_basename.desktop" "$pkgdir/usr/share/applications/$_basename.desktop"
}