diff options
author | Raphael Michel | 2018-01-20 19:47:23 +0100 |
---|---|---|
committer | Raphael Michel | 2018-01-20 19:47:23 +0100 |
commit | 5249a8fd9ea1f59d01e72f02b431996c7ccb51c2 (patch) | |
tree | acb9643a1ebe59c30889d488b4db1af2c40fc558 | |
download | aur-5249a8fd9ea1f59d01e72f02b431996c7ccb51c2.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a82e836e9578 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = cups-fgl-printers-git + pkgdesc = CUPS drivers for FGL-based ticket printers + pkgver = r5.ff6abcc + pkgrel = 1 + url = https://github.com/pretix/cups-fgl-printers + arch = any + license = GPL + makedepends = make + makedepends = cups + depends = python + depends = python-pillow + source = git+https://github.com/pretix/cups-fgl-printers.git + sha256sums = SKIP + +pkgname = cups-fgl-printers-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fbd6f8a91bbf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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') +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" +} |