From eda7dd58fe8c35c73ab4e53625f8c57f24e0e0e4 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 12 Feb 2024 10:13:35 +0100 Subject: fix ppd files with `cupstestppd` --- .SRCINFO | 3 ++- PKGBUILD | 15 +++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 10e4672..5445cc3 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,11 +1,12 @@ pkgbase = ppd-psn-dp-1820 pkgdesc = PPD drivers for Panasonic WORKiO DP-1520P, 1820E and 1820P pkgver = 1.0 - pkgrel = 1 + pkgrel = 3 url = https://panasonic.net/cns/pcc/support/mfp/dp-1820/ps/download.html install = psn-dp-1820.install arch = any license = unknown + makedepends = dos2unix depends = cups source = https://www.psn-web.net/cs/support/mfp/dp-1820/ps/mxae061215.zip sha256sums = 7c3ccc9c8e8851aadb46b53108e92813f9b2751d61ce9e5727e2c26f49133b55 diff --git a/PKGBUILD b/PKGBUILD index 6abae26..0f060dc 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,22 +2,25 @@ pkgname=ppd-psn-dp-1820 pkgver=1.0 -pkgrel=2 +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() { - cd "$srcdir/mxae061215" - target_dir="$pkgdir/usr/share/ppd/Panasonic" mkdir -p "$target_dir" - install -D -m 644 \ - Panasonic_DP-1520P.ppd Panasonic_DP-1820E.ppd Panasonic_DP-1820P.ppd \ - "$target_dir" + + cd "$srcdir/mxae061215" + for file in * ; do + dos2unix -q "$file" + sed -i 's/\/8x13/g' "$file" + install -D -m 644 "$file" "$target_dir" + done } -- cgit v1.2.3