summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e0a6318621567d42f3b7b70f8f2eac849ebb5b5 (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=r23.4efebe9
pkgrel=1
pkgdesc='qt5 based frontend for lpr cli command'
arch=(x86_64)
url='https://github.com/KeithDHedger/LprGUI'
license=(GPL-3.0-or-later)
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
}