summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 0f060dc7a5e4104541f5796556c40f267ae89660 (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
# Maintainer: Loek Le Blansch <loek@pipeframe.xyz>

pkgname=ppd-psn-dp-1820
pkgver=1.0
pkgrel=3
pkgdesc="PPD drivers for Panasonic WORKiO DP-1520P, 1820E and 1820P"
arch=('any')
url="https://panasonic.net/cns/pcc/support/mfp/dp-1820/ps/download.html"
license=('unknown')
depends=('cups')
makedepends=('dos2unix')
source=('https://www.psn-web.net/cs/support/mfp/dp-1820/ps/mxae061215.zip')
sha256sums=('7c3ccc9c8e8851aadb46b53108e92813f9b2751d61ce9e5727e2c26f49133b55')
install=psn-dp-1820.install

package() {
	target_dir="$pkgdir/usr/share/ppd/Panasonic"
	mkdir -p "$target_dir"

	cd "$srcdir/mxae061215"
	for file in * ; do
		dos2unix -q "$file"
		sed -i 's/\<Foolscap\>/8x13/g' "$file"
		install -D -m 644 "$file" "$target_dir"
	done
}