summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 467cf1d4035932fb60ad506c5a8ed163bb5bad60 (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: Layne Bernardo <lmbernar (at) uark (dot) edu>
pkgname='labelmanager-git'
pkgver=0.1
pkgrel=3
pkgdesc="Simple barcode printing interface for Zebra printers using LPR"
arch=('x86_64')
url="https://github.com/LMBernardo/LabelManager"
license=('Apache-2.0')
depends=('qt5-base' 'qt5-websockets' 'cups')
makedepends=('git')
source=('git+https://github.com/LMBernardo/labelmanager.git')
md5sums=('SKIP')

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

build() {
	cd "$srcdir/${pkgname%-git}"
	qmake
	make
}

check() {
	cd "$srcdir/${pkgname%-git}"
	make -k check
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make INSTALL_ROOT="$pkgdir/" install
}