summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e61e98c21125d1123928acb90b5a7e8471939420 (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: Raphael Michel <mail@raphaelmichel.de>
_pkgname=cups-fgl-printers
pkgname=$_pkgname-git
pkgver=r5.ff6abcc
pkgrel=1
pkgdesc="CUPS drivers for FGL-based ticket printers"
arch=('any')
license=('GPL')
url="https://github.com/pretix/cups-fgl-printers"
depends=('python' 'python-pillow' 'python-numpy')
makedepends=('make' 'cups')
source=('git+https://github.com/pretix/cups-fgl-printers.git')
sha256sums=('SKIP')

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

build() {
	cd "${srcdir}/${_pkgname}"
	make ppds
}

package() {
	cd "${srcdir}/${_pkgname}"
	install -Dm 755 rastertofgl.py "${pkgdir}/usr/lib/cups/filter/rastertofgl"
	install -d  "${pkgdir}/usr/share/cups/model/custom/fgl"
	cd ppd
	find -type f -exec install -Dm 644 {} "${pkgdir}/usr/share/cups/model/custom/fgl/{}" \;
	cd ..
	install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}