summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 603a3d90d607ba3dff67c537f30729476352cd0b (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
# Maintainer: Bart Libert <aur@bart.libert.email>
_pkgname=LprGUI
pkgname=lprgui-git
pkgver=r22.dee6596
pkgrel=1
pkgdesc='qt5 based frontend for lpr cli command'
arch=(x86_64)
url='https://github.com/KeithDHedger/LprGUI'
license=(GPL3)
provides=(lpgrui)
depends=(cups qt5-base)
makedepends=(git make qt5-tools)
source=(git+https://github.com/KeithDHedger/LprGUI.git)
sha256sums=('SKIP')

prepare() {
# Make sure LDFLAGS are used
  cd "$_pkgname"
  sed -i 's/-fPIC/-fPIC ${LDFLAGS}/' Makefile
}

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"
  make
}

package() {
  cd "$_pkgname"
  make DESTDIR="$pkgdir" install
}