summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58b1069cb71c91c72e20fc68cc875bb41da477a7 (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
36
37
38
39
40
# Maintainer: Simon Marquardt <simon.marquardt@posteo.de>
pkgname=leitz-icon
pkgver=1.0.3
pkgrel=2
epoch=
pkgdesc="driver for Leitz Icon label printer"
arch=('x86_64')
url="https://support.leitz.com/hc/de/community/posts/207467817/comments/115004415228"
license=('unknown')
groups=()
depends=('cups')
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
#source=("https://web.leitz-cloud.com/1/files/share/511/Public/Software/Linux/Drivers/LeitzIconDriversForLinux1.0.3.zip/449f3bc489b024")
source=("https://archive.org/download/leitz-icon-drivers-for-linux-1.0.3/LeitzIconDriversForLinux1.0.3.zip")
noextract=()
md5sums=('5457e0fb8ca2d79998ddc9237d76bc42')
validpgpkeys=()

build() {
	cd "LeitzIconDriversForLinux$pkgver"
	gcc -std=gnu99 -o raster2printer raster_c_functions.c raster2printer.c -lcups -lcupsimage
}

package() {
	cd "LeitzIconDriversForLinux$pkgver"
	install -dm 755 "${pkgdir}"/usr/lib/cups/filter
	install -m 755 raster2printer "${pkgdir}"/usr/lib/cups/filter
	install -dm 755 "${pkgdir}"/usr/share/ppd/"${pkgname}"
	install -m 644 PPD/LeitzIcon.ppd.gz "${pkgdir}"/usr/share/ppd/"${pkgname}"
	install -m 644 Resources/LeitzPrintIcon.icns "${pkgdir}"/usr/share/ppd/"${pkgname}"
}